Skip to content

Commit efdeea1

Browse files
committed
combine validation logic
1 parent 2ab96b1 commit efdeea1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/util.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ handleMessage <- function(..., indent = 4, exdent = 6)
117117
# are version specifiers or blank.
118118
cleanupDependency <- function(input, remove.R = TRUE)
119119
{
120-
if (is.null(input)) return(character(0))
121-
if (!nchar(input)) return(character(0))
120+
if (is.null(input) || !nchar(input))
121+
return(character(0))
122122
output <- gsub("\\s", "", input)
123123
raw_nms <- output
124124
nms <- strsplit(raw_nms, ",")[[1]]

0 commit comments

Comments
 (0)