From c113f21e54b44bb4e52899787848fa976fa2588e Mon Sep 17 00:00:00 2001 From: elena-krismer Date: Thu, 10 Oct 2024 10:20:01 +0000 Subject: [PATCH] Style code (GHA) --- R/try_query.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/try_query.R b/R/try_query.R index 15825a75..7856166a 100644 --- a/R/try_query.R +++ b/R/try_query.R @@ -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) }