Skip to content

Commit bb4c3f5

Browse files
[autofix.ci] apply automated fixes
1 parent bc49a82 commit bb4c3f5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

crates/oxc_linter/src/config/config_builder.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,17 @@ impl ConfigStoreBuilder {
558558
let normalized_name = normalize_plugin_name(&name).into_owned();
559559

560560
if LintPlugins::try_from(normalized_name.as_str()).is_err() {
561-
external_plugin_store.register_plugin(plugin_path, normalized_name, offset, rule_names);
561+
external_plugin_store.register_plugin(
562+
plugin_path,
563+
normalized_name,
564+
offset,
565+
rule_names,
566+
);
562567
Ok(())
563568
} else {
564-
Err(ConfigBuilderError::ReservedExternalPluginName { plugin_name: normalized_name })
569+
Err(ConfigBuilderError::ReservedExternalPluginName {
570+
plugin_name: normalized_name,
571+
})
565572
}
566573
}
567574
PluginLoadResult::Failure(e) => Err(ConfigBuilderError::PluginLoadFailed {

0 commit comments

Comments
 (0)