Skip to content

Commit

Permalink
change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
RLesur committed Oct 31, 2020
1 parent ec3d139 commit 784ff2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ cache_in_memory <- function(token) {
rlang::env_bind(.memory_cache, last_token = token)
}

load_from_memory_cache <- function(key) {
if (!nzchar(key)) {
load_from_memory_cache <- function(app_key) {
if (missing(app_key) || !nzchar(app_key)) {
return(rlang::env_get(.memory_cache, "last_token", NULL))
}
rlang::env_get(.memory_cache, key, NULL)
rlang::env_get(.memory_cache, app_key, NULL)
}

clear_memory_cache <- function() {
Expand Down

0 comments on commit 784ff2f

Please sign in to comment.