diff --git a/bin/opencollective.js b/bin/opencollective.js index cb9f08f80d7..e619ba330f1 100644 --- a/bin/opencollective.js +++ b/bin/opencollective.js @@ -35,7 +35,7 @@ function printBadge() { const now = new Date(); -if (now.getDay() == 1 ) { +if (now.getDay() === 1) { const lastPrintFile = path.resolve(__dirname, "../.lastocprint"); fs.readFile(lastPrintFile, "utf8", (err, lastPrint = 0) => { if (err && err.code !== "ENOENT") return; @@ -44,4 +44,4 @@ if (now.getDay() == 1 ) { fs.writeFileSync(lastPrintFile, now); } }); -} \ No newline at end of file +}