Skip to content

Commit 9e623d2

Browse files
author
John Waller
committed
rm some redundant code
1 parent ec417d4 commit 9e623d2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

R/occ_download_import.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ occ_download_import <- function(x=NULL, key=NULL, path=".", fill = FALSE,
8989
} else if (any(grepl("\\.csv", xx))) {
9090
tpath <- grep("\\.csv", xx, value = TRUE)
9191
if (length(tpath) > 1) stop("more than one .csv file found", call. = FALSE)
92-
if (length(tpath) > 1) {
93-
tpath <- tpath[grepl(tpath,xx)]
94-
}
9592
}
9693
targetpath <- file.path(tmpdir, tpath)
9794
if (!file.exists(tmpdir)) stop("appropriate file not found", call. = FALSE)

0 commit comments

Comments
 (0)