Skip to content

Commit 790d27a

Browse files
committedMar 11, 2019
feat(opencollective prompt): extract weekday to variable
1 parent badc32d commit 790d27a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎bin/opencollective.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ function printBadge() {
3434

3535

3636
const now = new Date();
37-
if (now.getDay() === 1) {
37+
const MONDAY = 1;
38+
if (now.getDay() === MONDAY) {
3839
const lastPrintFile = path.resolve(__dirname, "../.lastocprint");
3940
fs.readFile(lastPrintFile, "utf8", (err, lastPrint = 0) => {
4041
if (err && err.code !== "ENOENT") return;

0 commit comments

Comments
 (0)
Please sign in to comment.