1
0
Fork 0

chore(core): Code QA fixes

This commit is contained in:
joostdecock 2023-05-19 10:34:51 +02:00
parent 7c021b2ea4
commit 92e8c6fdca
2 changed files with 3 additions and 3 deletions

View file

@ -187,7 +187,7 @@ Path.prototype.clean = function () {
if (!(op.cp1.sitsRoughlyOn(cur) && op.cp2.sitsRoughlyOn(cur) && op.to.sitsRoughlyOn(cur)))
ops.push(ops)
}
cur = op?.to
cur = op.to
}
if (ops.length < this.ops.length) this.ops = ops

View file

@ -304,7 +304,7 @@ describe('Part', () => {
const part = {
name: 'test',
draft: ({ options, part }) => {
if (options.test) return part
if (options.test === 'This should never match') return null
else return part
},
}
@ -321,7 +321,7 @@ describe('Part', () => {
const part = {
name: 'test',
draft: ({ absoluteOptions, part }) => {
if (absoluteOptions.test) return part
if (absoluteOptions.test === 'this check should always fail') return null
else return part
},
}