Skip to content

Commit

Permalink
Use nolint + add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Jun 19, 2024
1 parent 665bad1 commit 1121d66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/path_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ split_path <- function(dirs, prefix) {
}

# https://github.com/r-lib/lintr/pull/2613
normalize_path <- function(path, winslash = "/", mustWork = NA) {
# Simple wrapper around normalizePath but ensures forward slash on Windows
normalize_path <- function(path, winslash = "/", mustWork = NA) { # nolint: object_name_linter
normalizePath( # nolint: undesirable_function_linter
path = path,
winslash = winslash,
Expand Down

0 comments on commit 1121d66

Please sign in to comment.