Skip to content

Commit

Permalink
cleaned up some redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinSee committed Aug 16, 2023
1 parent 2f71019 commit 9d044f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/queryTagMeta.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ queryTagMeta = function(tag_code = NULL,
task = 'query data from PTAGIS')

# parse the response
parsed = httr::content(web_req,
'parsed')

if(!is.na(type)) {
parsed = httr::content(web_req,
'parsed')
if(length(parsed[[1]]) == 1) {
parsed <- parsed %>%
stack() %>%
Expand Down Expand Up @@ -93,8 +94,7 @@ queryTagMeta = function(tag_code = NULL,
}

} else {
parsed <- httr::content(web_req,
'parsed') %>%
parsed <- parsed %>%
map(.f = function(x) {
x %>%
stack() %>%
Expand Down

0 comments on commit 9d044f2

Please sign in to comment.