Skip to content

Commit

Permalink
Update staging_is_active.R
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Aug 21, 2024
1 parent 42db2b0 commit e51b323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/staging_is_active.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ staging_is_active <- function(
within_staging <- function(start, today) {
month <- today$mon + 1L
day <- today$mday
stopifnot(day <= 28L)
stopifnot(start$mday <= 28L)
(month == start[1L] && day >= start[2L]) ||
(month == start[1L] + 1L && day < start[2L])
}

0 comments on commit e51b323

Please sign in to comment.