mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
refactor(core): Allow null
instead of SyntaxError
in expression (#4998)
⚡ Allow `null` instead of `SyntaxError`
This commit is contained in:
parent
d60a815a44
commit
1bc3930df8
|
@ -278,10 +278,6 @@ export class Expression {
|
|||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
if (error instanceof Error && error.name === 'SyntaxError') {
|
||||
throw new Error('invalid syntax');
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue