Nobody needs a better nullish coalescing operator than OR
This commit is contained in:
parent
953b44e942
commit
211cb2010e
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ async function handleClient(client) {
|
|||
const query = JSON.parse(line)
|
||||
const results = []
|
||||
for (const input of query.formulas) {
|
||||
const options = input.options !== null ? input.options : (query.options !== null ? query.options : defaultOptions) // Because I can't be arsed to update all nodejs installations in existence just for this single line
|
||||
const options = input.options || query.options || defaultOptions // Because I can't be arsed to update all nodejs installations in existence just for this single line
|
||||
// Add macros from the macros option
|
||||
if (options.macros) {
|
||||
for (const macro of Object.keys(options.macros)) {
|
||||
|
|
Loading…
Reference in a new issue