Skip to content

Commit

Permalink
Remove unnecessary requireNamespace() check
Browse files Browse the repository at this point in the history
This function's (only) caller performs the same check
  • Loading branch information
rich-iannone committed Apr 22, 2020
1 parent 62d40b7 commit a7dbb07
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions R/retrieve_credentials.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,6 @@ get_smtp_file_creds <- function(file_name = NULL) {
#' Retrieve metadata and authentication values from keyring data
#'
#' @noRd
get_smtp_keyring_creds <- function(id = NULL) {

# We requires the installation of the keyring package
if (!requireNamespace("keyring", quietly = TRUE)) {

stop("The `keyring` package is required.",
call. = FALSE)
}

id_name <- id

Expand Down

0 comments on commit a7dbb07

Please sign in to comment.