Skip to content

Commit b345ae9

Browse files
committed
Stage
1 parent 9a884a0 commit b345ae9

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

R/bitly_user_app_info.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ bitly_update_user <- function(default_group_guid = NULL, name = "", showRequestU
7474
user_info_url <- "https://api-ssl.bitly.com/v4/user"
7575
access_token <- Sys.getenv("bitly_access_token")
7676

77-
if (!is_bitly_user_premium_holder(access_token)) {
77+
if (!is_bitly_user_premium_holder()) {
7878
warning(
7979
"Your account is not premium. Please report bugs in GitHub if this is not true. ",
8080
"We will now skip changing group guid."
@@ -97,11 +97,10 @@ bitly_update_user <- function(default_group_guid = NULL, name = "", showRequestU
9797
#' Check if authenticated user holds premium account
9898
#'
9999
#' @seealso [bitly_user_info()]
100-
#' @inheritParams bitly_user_info
101100
#'
102101
#' @export
103-
is_bitly_user_premium_holder <- function(access_token) {
104-
user_profile <- bitly_user_info(access_token)
102+
is_bitly_user_premium_holder <- function() {
103+
user_profile <- bitly_user_info()
105104

106105
return(user_profile$is_sso_user[[1]])
107106
}

man/is_bitly_user_premium_holder.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)