File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,7 @@ fn check_impl(
72
72
let shell_lint = lint_args. contains ( & "shell:lint" ) || shell_all;
73
73
let cpp_all = lint_args. contains ( & "cpp" ) ;
74
74
let cpp_fmt = lint_args. contains ( & "cpp:fmt" ) || cpp_all;
75
- let spellcheck_all = lint_args. contains ( & "spellcheck" ) ;
76
- let spellcheck_fix = lint_args. contains ( & "spellcheck:fix" ) ;
75
+ let spellcheck = lint_args. contains ( & "spellcheck" ) ;
77
76
78
77
let mut py_path = None ;
79
78
@@ -226,7 +225,7 @@ fn check_impl(
226
225
shellcheck_runner ( & merge_args ( & cfg_args, & file_args_shc) ) ?;
227
226
}
228
227
229
- if spellcheck_all || spellcheck_fix {
228
+ if spellcheck {
230
229
let config_path = root_path. join ( "typos.toml" ) ;
231
230
// sync target files with .github/workflows/spellcheck.yml
232
231
let mut args = vec ! [
@@ -238,11 +237,11 @@ fn check_impl(
238
237
"./src/librustdoc" ,
239
238
] ;
240
239
241
- if spellcheck_all {
242
- eprintln ! ( "spellcheck files" ) ;
243
- } else if spellcheck_fix {
240
+ if bless {
244
241
eprintln ! ( "spellcheck files and fix" ) ;
245
242
args. push ( "--write-changes" ) ;
243
+ } else {
244
+ eprintln ! ( "spellcheck files" ) ;
246
245
}
247
246
spellcheck_runner ( & args) ?;
248
247
}
You can’t perform that action at this time.
0 commit comments