1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Remove jshint warning

This commit is contained in:
Nick O'Leary 2022-11-07 21:11:58 +00:00
parent de8a5ea262
commit f28bc1bff7
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -591,7 +591,7 @@ RED.nodes = (function() {
prop === 'z' ||
prop === 'l' ||
prop === 'd' ||
(prop === 'changed' && !!node.changed !== !!value) ||
(prop === 'changed' && (!!node.changed) !== (!!value)) || // jshint ignore:line
((prop === 'x' || prop === 'y') && !node.resize && node.type !== 'group')
) {
throw new Error(`Cannot modified property '${prop}' of locked object '${node.type}:${node.id}'`)