Skip to content

Commit df315af

Browse files
authored
protect if-clause (#6302)
1 parent 66d6ee4 commit df315af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/geom-ribbon.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ GeomRibbon <- ggproto("GeomRibbon", Geom,
132132
strsplit(self$required_aes, "|", fixed = TRUE),
133133
`[[`, i = 1, character(1)
134134
)
135-
if (params$flipped_aes || any(data$flipped_aes) %||% FALSE) {
135+
if (isTRUE(params$flipped_aes || any(data$flipped_aes) %||% FALSE)) {
136136
vars <- switch_orientation(vars)
137137
}
138138
vars <- c(vars, self$non_missing_aes)

0 commit comments

Comments
 (0)