Skip to content

Commit

Permalink
empty function needs same arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
radbasa committed Aug 21, 2024
1 parent ea2bc0d commit 67aabbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ rhino_style <- function() {
format_r <- function(paths, exclude_files = c("__init__\\.R")) {
style_box_use <- box.linters::style_box_use_dir
if (!box.linters::is_treesitter_installed()) {
style_box_use <- function(path) { }
style_box_use <- function(path, exclude_files) { }
cli::cli_warn(
c(
"x" = "The packages {{treesitter}} and {{treesitter.r}} are required by some features of `format_r()`.", #nolint
Expand Down

0 comments on commit 67aabbc

Please sign in to comment.