From 953b44e942282375ac369af233c123b28146713e Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Sat, 24 Feb 2024 02:11:17 +0100 Subject: [PATCH] Removed null coalescing operator, because I don't want to update node on every computer in existence. --- index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index 206b653..0659539 100755 --- a/index.mjs +++ b/index.mjs @@ -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 ?? query.options ?? defaultOptions + 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 // Add macros from the macros option if (options.macros) { for (const macro of Object.keys(options.macros)) {