Skip to content

Commit

Permalink
feat(opencollective prompt): extract weekday to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
misterdev committed Mar 11, 2019
1 parent badc32d commit 790d27a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/opencollective.js
Expand Up @@ -34,7 +34,8 @@ function printBadge() {


const now = new Date();
if (now.getDay() === 1) {
const MONDAY = 1;
if (now.getDay() === MONDAY) {
const lastPrintFile = path.resolve(__dirname, "../.lastocprint");
fs.readFile(lastPrintFile, "utf8", (err, lastPrint = 0) => {
if (err && err.code !== "ENOENT") return;
Expand Down

0 comments on commit 790d27a

Please sign in to comment.