chore(core): Code QA fixes
This commit is contained in:
parent
7c021b2ea4
commit
92e8c6fdca
2 changed files with 3 additions and 3 deletions
|
@ -187,7 +187,7 @@ Path.prototype.clean = function () {
|
||||||
if (!(op.cp1.sitsRoughlyOn(cur) && op.cp2.sitsRoughlyOn(cur) && op.to.sitsRoughlyOn(cur)))
|
if (!(op.cp1.sitsRoughlyOn(cur) && op.cp2.sitsRoughlyOn(cur) && op.to.sitsRoughlyOn(cur)))
|
||||||
ops.push(ops)
|
ops.push(ops)
|
||||||
}
|
}
|
||||||
cur = op?.to
|
cur = op.to
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ops.length < this.ops.length) this.ops = ops
|
if (ops.length < this.ops.length) this.ops = ops
|
||||||
|
|
|
@ -304,7 +304,7 @@ describe('Part', () => {
|
||||||
const part = {
|
const part = {
|
||||||
name: 'test',
|
name: 'test',
|
||||||
draft: ({ options, part }) => {
|
draft: ({ options, part }) => {
|
||||||
if (options.test) return part
|
if (options.test === 'This should never match') return null
|
||||||
else return part
|
else return part
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -321,7 +321,7 @@ describe('Part', () => {
|
||||||
const part = {
|
const part = {
|
||||||
name: 'test',
|
name: 'test',
|
||||||
draft: ({ absoluteOptions, part }) => {
|
draft: ({ absoluteOptions, part }) => {
|
||||||
if (absoluteOptions.test) return part
|
if (absoluteOptions.test === 'this check should always fail') return null
|
||||||
else return part
|
else return part
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue