Skip to content

Commit

Permalink
Update extract_fin_year.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Moohan authored Nov 24, 2023
1 parent 17cdd3d commit b9d8bd2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/extract_fin_year.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ extract_fin_year <- function(date, format = c("full", "numeric")) {
not a {.cls {class(date)}} vector.")
}

if (missing(format)) {
format <- "full"
} else {
format <- match.arg(format)
}
format <- rlang::arg_match(format)

if (inherits(date, "POSIXlt")) {
posix <- date

Check warning on line 33 in R/extract_fin_year.R

View check run for this annotation

Codecov / codecov/patch

R/extract_fin_year.R#L33

Added line #L33 was not covered by tests
Expand Down

0 comments on commit b9d8bd2

Please sign in to comment.