X-Git-Url: http://git.squeep.com/?p=squeep-html-template-helper;a=blobdiff_plain;f=lib%2Ftemplate-helper.js;fp=lib%2Ftemplate-helper.js;h=7e51bcfbb9058a25287bf934978d9234b368bf80;hp=c72e0ed348415d2c8adf6f1366b1639330819f65;hb=f02188f99140aabbd289b610d5968145c83fd057;hpb=100046316a87631fb8814f80b35647709e6c7319
diff --git a/lib/template-helper.js b/lib/template-helper.js
index c72e0ed..7e51bcf 100644
--- a/lib/template-helper.js
+++ b/lib/template-helper.js
@@ -15,7 +15,7 @@ const { lazy } = require('@squeep/lazy-property');
const initContext = (ctx) => {
ctx.errors = [];
ctx.notifications = [];
-}
+};
/**
* Some fields may have values outside normal dates, handle them here.
@@ -100,7 +100,7 @@ const timeElement = (date, options = {}) => {
dateFormat(date, pInf, nInf, otherwise),
'',
].join('');
-}
+};
/**
@@ -118,7 +118,7 @@ const secondsToPeriod = (seconds) => {
result.push(`${r} ${label}${r != 1 ? 's' : ''}`);
}
value = factor ? Math.floor(value / factor) : value;
- }
+ };
nextResult(60, 'second');
nextResult(60, 'minute');