Skip to content

Commit

Permalink
formatting...
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 27, 2018
1 parent 4b54d52 commit 06bcd13
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/handlers.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#' @rdname errorist_init
enable_errorist = function(error_search_func = getOption("errorist.warning", searcher::search_google),
warning_search_func = getOption("errorist.warning", searcher::search_google)) {

enable_error_shim(error_search_func)
enable_warning_shim(warning_search_func)
}
Expand Down Expand Up @@ -162,7 +161,7 @@ enable_warning_shim = function(warning_search_func =

# Automatically call the warning_handler after each R function is run
handler = addTaskCallback(warning_handler(warning_search_func),
name = "ErroristWarningHandler")
name = "ErroristWarningHandler")

}

Expand Down Expand Up @@ -216,11 +215,9 @@ enable_error_shim = function(error_search_func =
#' @rdname shims
#' @export
disable_error_shim = function() {

# Restore options
if (exists("op", envir = .errorist_env) &&
is.null(.errorist_env$op)) {

# Empty if condition...

} else if ("error" %in% names(.errorist_env$op)) {
Expand Down

0 comments on commit 06bcd13

Please sign in to comment.