Skip to content

Commit a7665da

Browse files
committed
fix mistake
1 parent 3e9e2ae commit a7665da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/geom-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Geom <- ggproto("Geom",
227227
required_aes <- unlist(strsplit(self$required_aes, '|', fixed = TRUE))
228228
}
229229
optional_aes <- self$optional_aes
230-
if (length(optional_aes) > 1) {
230+
if (length(optional_aes) > 0) {
231231
deprecate_soft0(
232232
"4.0.0",
233233
I("The `optional_aes` field"),

R/stat-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Stat <- ggproto("Stat",
214214
required_aes <- unlist(strsplit(self$required_aes, '|', fixed = TRUE))
215215
}
216216
optional_aes <- self$optional_aes
217-
if (length(optional_aes) > 1) {
217+
if (length(optional_aes) > 0) {
218218
deprecate_soft0(
219219
"4.0.0",
220220
I("The `optional_aes` field"),

0 commit comments

Comments
 (0)