From d3879c07b1b2140bd19433ae06855894228bd90f Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 11 Oct 2022 10:41:15 +0200 Subject: Rename flavours/glitch/util into flavours/glitch/utils --- app/javascript/flavours/glitch/util/js_helpers.js | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 app/javascript/flavours/glitch/util/js_helpers.js (limited to 'app/javascript/flavours/glitch/util/js_helpers.js') diff --git a/app/javascript/flavours/glitch/util/js_helpers.js b/app/javascript/flavours/glitch/util/js_helpers.js deleted file mode 100644 index 2ebd5b6c5..000000000 --- a/app/javascript/flavours/glitch/util/js_helpers.js +++ /dev/null @@ -1,5 +0,0 @@ -// This function returns the new value unless it is `null` or -// `undefined`, in which case it returns the old one. -export function overwrite (oldVal, newVal) { - return newVal === null || typeof newVal === 'undefined' ? oldVal : newVal; -} -- cgit