Skip to content

Commit 89fc835

Browse files
committed
missing braces
1 parent 1f16171 commit 89fc835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/SDA_query.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ SDA_query <- function(q, dsn = NULL) {
175175
"text/xml; charset=utf-8") # error response (maybe not anymore?)
176176
) {
177177
msg <- "Soil Data Access REST API is not currently available, please try again later."
178-
if (is.null(h[[1]]$headers$`content-type`))
178+
if (is.null(h[[1]]$headers$`content-type`)) {
179179
txt <- try(httr::content(r, as = "text", encoding = "UTF-8"), silent = TRUE)
180180
if (!inherits(txt, 'try-error')) {
181181
msg <- gsub("<[^>]*>", "", txt)

0 commit comments

Comments
 (0)