Skip to content

Commit

Permalink
Fix anonymous function (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia-Kosenkov authored Nov 10, 2024
1 parent ea68f4e commit e5d7010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ cargo_command_available <- function(args = "--help") {
try_exec_cmd <- function(cmd, args = character()) {
result <- tryCatch(
processx::run(cmd, args, error_on_status = FALSE),
error = \(...) list(status = -1)
error = function(...) list(status = -1)
)
if (result[["status"]] != 0) {
NA_character_
Expand Down

0 comments on commit e5d7010

Please sign in to comment.