Skip to content

Commit 3c19d7c

Browse files
Get rid of negated condition
1 parent 1c85c44 commit 3c19d7c

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

MMM-CalendarExt2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ Module.register("MMM-CalendarExt2", {
388388
},
389389

390390
work(sceneUid = null) {
391-
const uid = sceneUid !== null ? sceneUid : this.currentSceneUid;
391+
const uid = sceneUid || this.currentSceneUid;
392392
this.currentSceneUid = uid;
393393
if (!this.showing) {
394394
return false;

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const config = [
5656
"multiline-comment-style": "off",
5757
"no-inline-comments": "off",
5858
"no-magic-numbers": "off",
59-
"no-negated-condition": "off",
6059
"no-param-reassign": [
6160
"error",
6261
{

0 commit comments

Comments
 (0)