fix: some syntax errors with the help of eslint

This commit is contained in:
Tobi Schäfer 2020-03-21 15:35:25 +01:00
parent 060f6461cb
commit 0c1f1d0beb
3 changed files with 19 additions and 4 deletions

View file

@ -180,7 +180,7 @@ Date.prototype.getExpiry = function(param) {
*/
Date.prototype.equals = function(date, extend) {
if (!extend)
var extend = Date.ONEDAY;
extend = Date.ONEDAY;
switch (extend) {
case Date.ONESECOND:
if (this.getSeconds() != date.getSeconds())