Skip to content

Commit 07a96a0

Browse files
committed
read_settings() is an exported function, it shouldn't have a call argument.
Config error will therefore read as Error in `read_settings()`: instead of Error in `lint()`:
1 parent d25064b commit 07a96a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/settings.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#' ```
6262
#'
6363
#' @param filename Source file to be linted.
64-
read_settings <- function(filename, call = parent.frame()) {
64+
read_settings <- function(filename) {
6565
reset_settings()
6666

6767
config_file <- find_config(filename)
@@ -71,7 +71,7 @@ read_settings <- function(filename, call = parent.frame()) {
7171
default_settings[["encoding"]] <- default_encoding
7272
}
7373

74-
config <- read_config_file(config_file, call = call)
74+
config <- read_config_file(config_file)
7575
validate_config_file(config, config_file, default_settings)
7676

7777
for (setting in names(default_settings)) {

0 commit comments

Comments
 (0)