Skip to content

Commit

Permalink
Style code (GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-krismer committed Oct 10, 2024
1 parent e1c9f04 commit c113f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/try_query.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ try_query <-
} else if (type == "text/csv" || type == "txt/csv") {
result <- readr::read_csv(text_content, ...)
} else if (type == "application/json") {
result <- jsonlite::fromJSON(text_content, ...) # Using jsonlite for JSON parsing
result <- jsonlite::fromJSON(text_content, ...) # Using jsonlite for JSON parsing
} else if (type == "text") {
result <- text_content # Return raw text as-is
result <- text_content # Return raw text as-is
} else {
stop("Unsupported content type: ", type)
}
Expand Down

0 comments on commit c113f21

Please sign in to comment.