Skip to content

Commit

Permalink
more inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Aug 4, 2024
1 parent 78939d2 commit b0a2423
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,12 @@ print.lints <- function(x, ...) {
lapply(x, print, ...)
}

if (isTRUE(settings$error_on_lint)) {
quit("no", 31L, FALSE) # nocov
}
if (isTRUE(settings$error_on_lint)) quit("no", 31L, FALSE) # nocov
}

if (length(x) == 0L) {
cli_inform(c(i = "No lints found."))
# Empty lints: clear RStudio source markers
if (use_rstudio_source_markers) rstudio_source_markers(x)
cli_inform(c("i" = "No lints found."))

Check warning on line 105 in R/methods.R

View workflow job for this annotation

GitHub Actions / lint

file=R/methods.R,line=105,col=18,[keyword_quote_linter] Only quote named arguments to functions if necessary, i.e., if the name is not a valid R symbol (see ?make.names).
if (use_rstudio_source_markers) rstudio_source_markers(x) # clear RStudio source markers
}

invisible(x)
Expand Down

0 comments on commit b0a2423

Please sign in to comment.