Skip to content

Commit

Permalink
chore: only warn if values are different
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Nov 26, 2024
1 parent 43e01c6 commit 15c42d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/navs-legacy.R
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,10 @@ navbar_options_resolve_deprecated <- function(
ignored <- c()
for (opt in names(old_opts)) {
if (opt %in% names(options_user)) {
if (identical(old_opts[[opt]], options_user[[opt]])) {
next
}
ignored <- c(ignored, opt)

} else {
options_user[[opt]] <- old_opts[[opt]]
}
Expand Down

0 comments on commit 15c42d4

Please sign in to comment.