Skip to content

Commit

Permalink
Remove duplicated code in plotOverlapMetric()
Browse files Browse the repository at this point in the history
  • Loading branch information
adeschen committed Feb 18, 2021
1 parent d45cd9c commit 04570b2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions R/CNVMetricsOverlapMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,6 @@ plotOverlapMetric <- function(metric,
stop("\'colorRange\' must be a vector of 2 color names.")
}

## Validate that the color name has only one value
if (!is.character(colorRange) || length(colorRange) < 2) {
stop("\'colorRange\' must be a vector of 2 color names.")
}

## Validate that the color name is valid
tryCatch(col2rgb(colorRange), error = function(e) {
stop("\'colorRange\' must be be a vector of 2 valid color names.")
Expand Down

0 comments on commit 04570b2

Please sign in to comment.