Skip to content

Commit

Permalink
removed github_auth if not an api call
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Jan 21, 2021
1 parent 6be759a commit 8c9e8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/remote_package_dcf.R
Expand Up @@ -54,7 +54,7 @@ get_remote_package_dcf = function(
ctype = httr::content_type_json()
}
req <- httr::GET(url, path = path,
github_auth(pat),
if (api_call) github_auth(pat),
httr::write_disk(path = tmp),
ctype,
...)
Expand Down

0 comments on commit 8c9e8b8

Please sign in to comment.