about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util/js_helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/flavours/glitch/util/js_helpers.js')
-rw-r--r--app/javascript/flavours/glitch/util/js_helpers.js5
1 files changed, 0 insertions, 5 deletions
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;
-}