From fc9c529dc5783990841281efc6acfbf17c1e30f7 Mon Sep 17 00:00:00 2001 From: Weiming Hu Date: Mon, 13 Sep 2021 11:11:57 -0400 Subject: [PATCH] remove or operation at the end. Deal with file-not-found properly --- apps/hourstrike/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hourstrike/boot.js b/apps/hourstrike/boot.js index 0c71f03a6..b8d44c961 100644 --- a/apps/hourstrike/boot.js +++ b/apps/hourstrike/boot.js @@ -1,6 +1,6 @@ (function() { function setup () { - var settings = require('Storage').readJSON('hourstrike.json',1)||[]; + var settings = require('Storage').readJSON('hourstrike.json',1); if (!settings) resetSettings(); var t = new Date(); var t_min_sec = t.getMinutes()*60+t.getSeconds();