Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Aug 9, 2024
1 parent 1d057ce commit 36b737c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion R/file_checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' @export
check_dir_writable <- function(dir) {
log_trace("Checking if directory is writable: ", dir)
if (tolower(Sys.info()["sysname"]) == "windows") {
if (tolower(Sys.info()[["sysname"]]) == "windows") {
log_warn("Function check_dir_writable is not tested on Windows.")
warning("check_dir_writable may return incorrect results on Windows.")

Check warning on line 15 in R/file_checks.R

View check run for this annotation

Codecov / codecov/patch

R/file_checks.R#L14-L15

Added lines #L14 - L15 were not covered by tests
}
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-check_dir_writable.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ test_that("check_dir_writable emits warning on windows.", {
regexp = "^check_dir_writable may return incorrect results on Windows.$"
)
})

0 comments on commit 36b737c

Please sign in to comment.