Skip to content

Commit

Permalink
Utilize the OR operator || better (nhn#670)
Browse files Browse the repository at this point in the history
* refactor: change elvis to or operator
  • Loading branch information
dilyanpalauzov authored Jul 27, 2020
1 parent 5adbd7b commit 1a2975c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/common/datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ datetime = {
cursor, week,
calendar = [],
startDayOfWeek = options.startDayOfWeek,
isAlways6Week = util.isUndefined(options.isAlways6Week) ? true : options.isAlways6Week,
isAlways6Week = util.isUndefined(options.isAlways6Week) || options.isAlways6Week,
visibleWeeksCount = options.visibleWeeksCount,
workweek = options.workweek;

Expand Down
2 changes: 1 addition & 1 deletion src/js/common/domutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ domutil = {
});
}

return el.currentStyle[prop] ? el.currentStyle[prop] : null;
return el.currentStyle[prop] || null;
}
};
}
Expand Down

0 comments on commit 1a2975c

Please sign in to comment.