@@ -129,7 +129,7 @@ remove_usethis_readme_hook <- function() {
129129 encoding = " UTF-8"
130130 )
131131 candidate <- " .git/hooks/pre-commit"
132- if (fs :: file_exists(candidate )) {
132+ if (file_exists(candidate )) {
133133 if (identical(readLines(candidate , encoding = " UTF-8" ), legacy )) {
134134 fs :: file_delete(candidate )
135135 cli :: cli_alert_info(paste(
@@ -172,7 +172,7 @@ uninstall_precommit <- function(scope = "repo",
172172 if (scope == " repo" ) {
173173 uninstall_repo(ask = (ask %in% c(" repo" , " both" )))
174174 path_config <- " .pre-commit-config.yaml"
175- if (fs :: file_exists(path_config )) {
175+ if (file_exists(path_config )) {
176176 fs :: file_delete(path_config )
177177 cli :: cli_alert_success(" Removed .pre-commit-config.yaml" )
178178 }
@@ -260,7 +260,7 @@ uninstall_repo <- function(ask) {
260260 }
261261 }
262262 path_file <- " .pre-commit-config.yaml"
263- if (fs :: file_exists(path_file )) {
263+ if (file_exists(path_file )) {
264264 fs :: file_delete(path_file )
265265 cli :: cli_alert_success(paste(
266266 " Removed .pre-commit-config.yaml. If you want your collaborators" ,
@@ -280,5 +280,5 @@ uninstall_repo <- function(ask) {
280280}
281281
282282is_installed <- function () {
283- fs :: file_exists(path_precommit_exec(check_if_exists = FALSE ))
283+ file_exists(path_precommit_exec(check_if_exists = FALSE ))
284284}
0 commit comments