Skip to content

Commit 589b551

Browse files
Apply suggestions from code review
1 parent ffe5b0e commit 589b551

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/download.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ rsi_download_rasters <- function(items,
135135
"GDAL warp failed when attempting to merge ",
136136
"{length(unlist(feature_iter))} items"
137137
),
138-
class = "download_warp_error", parent = e
138+
class = "rsi_download_warp_error", parent = e
139139
)
140140
}
141141

@@ -148,7 +148,7 @@ rsi_download_rasters <- function(items,
148148

149149
# stop if failure occurs when there is only one item to download.
150150
if (length(feature_iter) == 1) {
151-
rlang::abort(err_msg, class = "download_warp_error", parent = e)
151+
rlang::abort(err_msg, class = "rsi_download_warp_error", parent = e)
152152
}
153153

154154
# warn if failure occurs when multiple items are being downloaded.

R/get_stac_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ get_stac_data <- function(aoi,
472472

473473
if (is.null(composite_function)) {
474474
app <- tryCatch(rstac::items_datetime(items), error = function(e) NA)
475-
app <- gsub(":", "", app)
475+
app <- gsub(":", "", app) # #29, #32
476476
if (any(is.na(app))) app <- NULL
477477
app <- app %||% as.character(seq_along(download_results))
478478
app <- make.unique(app, sep = "_")

0 commit comments

Comments
 (0)