Skip to content

Commit

Permalink
redue if nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
pfuehrlich-pik committed Sep 26, 2023
1 parent 7ce866e commit ff36152
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions R/toolGetMapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ toolGetMapping <- function(name, type = NULL, where = NULL,

if (isWrapperActive("wrapperChecks")) {
for (w in c("downloadSource", "readSource", "calcOutput", "retrieveData")) {
if (isWrapperActive(w)) {
if (is.null(where)) {
warning("argument 'where' should be set when calling toolGetMapping from within a madrat function.")
break
}
if (isWrapperActive(w) && is.null(where)) {
warning("argument 'where' should be set when calling toolGetMapping from within a madrat function.")
break
}
}
}
Expand Down

0 comments on commit ff36152

Please sign in to comment.