Skip to content

Commit

Permalink
Fix lintr warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-hannah committed Aug 29, 2023
1 parent 885bea8 commit 1916519
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/sg_palette.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ sg_palette <- function(palette = "main",
# Use 'main2' if AF main palette used and only 2 colours required
if (
palette_type == "af" &&
n == 2 &&
palette != "main2" &&
grepl("main", palette)
n == 2 &&
palette != "main2" &&
grepl("main", palette)
) {
palette <- "main2"
cli::cli_warn(c(
Expand Down

0 comments on commit 1916519

Please sign in to comment.