replace var with const

This commit is contained in:
casperlamboo 2016-04-22 19:38:00 +02:00 committed by Simon Voordouw
parent 9e6dcf08f9
commit cf38ea9e96

View File

@ -25,8 +25,7 @@ export default function generateInnerLines(slices, settings) {
if (!part.shape.closed) continue;
// var outerLine = part.shape.clone().scaleUp(scale).offset(-nozzleRadius);
var outerLine = part.shape.scaleUp(scale).offset(-nozzleRadius, offsetOptions);
const outerLine = part.shape.scaleUp(scale).offset(-nozzleRadius, offsetOptions);
if (outerLine.paths.length > 0) {
part.outerLine.join(outerLine);