Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit 1a02ec5

Browse files
chore: 🤖 lint
1 parent f102da0 commit 1a02ec5

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

crates/rome_service/src/configuration/parse/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mod configuration;
55
mod files;
66
mod formatter;
77
mod javascript;
8-
mod json;
8+
mod json_visitor;
99
mod linter;
1010
mod organize_imports;
1111
mod rules;

crates/rome_service/src/configuration/parse/json/json.rs renamed to crates/rome_service/src/configuration/parse/json/json_visitor.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,9 @@ impl VisitNode<JsonLanguage> for JsonConfiguration {
2525
let (name, value) = self.get_key_and_value(key, value, diagnostics)?;
2626
let name_text = name.text();
2727

28-
match name_text {
29-
"allowComments" => {
30-
let glob_array = self.map_to_index_set_string(&value, name_text, diagnostics)?;
31-
self.allow_comments = Some(glob_array);
32-
}
33-
_ => {}
28+
if let "allowComments" = name_text {
29+
let glob_array = self.map_to_index_set_string(&value, name_text, diagnostics)?;
30+
self.allow_comments = Some(glob_array);
3431
}
3532

3633
Some(())

0 commit comments

Comments
 (0)