Skip to content

Commit

Permalink
add another 'assert_extension' for r-transit#38; thanks @polettif
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Oct 9, 2024
1 parent 6fd1246 commit 2a0ad5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/import_gtfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ append_file_ext = function(file) {
# behaviour defined in test_import_gtfs.R#292
file_ext <- "txt"
}
if (!identical(fs::path_ext(.f), file_ext)) {
if (!assert_extension(.f, file_ext)) {
.f <- fs::path_ext_set(.f, file_ext)
}
return(.f)
Expand Down

0 comments on commit 2a0ad5b

Please sign in to comment.