File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ style_active_file <- function() {
7575 paste0(ensure_last_n_empty(out ), collapse = " \n " ),
7676 id = context $ id
7777 )
78- if (save_after_styling_is_active() == TRUE && context $ path != " " ) {
78+ if (save_after_styling_is_active() && context $ path != " " ) {
7979 rstudioapi :: documentSave(context $ id )
8080 }
8181 rstudioapi :: setCursorPosition(context $ selection [[1L ]]$ range )
@@ -138,7 +138,7 @@ style_selection <- function() {
138138 ), collapse = " \n " ),
139139 id = context $ id
140140 )
141- if (save_after_styling_is_active() == TRUE && context $ path != " " ) {
141+ if (save_after_styling_is_active() && context $ path != " " ) {
142142 invisible (rstudioapi :: documentSave(context $ id ))
143143 }
144144}
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ apply_stylerignore <- function(flattened_pd) {
112112 # cannot rely on flattened_pd$text == option_read("styler.ignore_start")
113113 # because if the marker logic is not correct (twice off in a row), we'll
114114 # get it wrong.
115- to_ignore <- flattened_pd $ stylerignore == TRUE
115+ to_ignore <- flattened_pd $ stylerignore
116116 not_first <- flattened_pd $ stylerignore == lag(
117117 flattened_pd $ stylerignore ,
118118 default = FALSE
You can’t perform that action at this time.
0 commit comments