Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vogelsgesang committed Jun 10, 2024
1 parent eb9dbd3 commit 45b5265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub fn diagnostics_from_rcconfig(
if let Some((command, span)) = &l.command {
if command == "import" || command == "try-import" {
diagnostics.extend(diagnostics_for_imports(rope, l, file_path))
} else if bazel_flags.flags_by_commands.get(command).is_some() {
} else if bazel_flags.flags_by_commands.contains_key(command) {
diagnostics.extend(diagnostics_for_flags(rope, l, bazel_flags))
} else {
diagnostics.push(Diagnostic::new_simple(
Expand Down

0 comments on commit 45b5265

Please sign in to comment.