Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
byrongibby committed Mar 20, 2024
1 parent 0eeb04d commit dd13796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/read_dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ get_release <- function(env, ref, candidate_release) {
data_message <- content(response,
type = "application/json",
encoding = "UTF-8")
if (data_message$releases) {
if (length(data_message$releases) != 0) {
if (candidate_release == "latest") {
release <- head(data_message$releases, n = 1)[[1]]$release |>
as.POSIXct(tz = "UTC", format = "%Y-%m-%dT%H:%M:%SZ")
Expand Down

0 comments on commit dd13796

Please sign in to comment.