Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix: remove `return`

hippietrailea00f53562c3
diff --git a/harper-core/src/linting/modal_of.rs b/harper-core/src/linting/modal_of.rs
index a7847d014..50336a418 100644
--- a/harper-core/src/linting/modal_of.rs
+++ b/harper-core/src/linting/modal_of.rs
@@ -111,7 +111,7 @@ impl PatternLinter for ModalOf {
.chars()
.collect();
- return Some(Lint {
+ Some(Lint {
span: span_modal_of,
lint_kind: LintKind::WordChoice,
suggestions: vec![Suggestion::replace_with_match_case(
@@ -120,7 +120,7 @@ impl PatternLinter for ModalOf {
)],
message: "Use `have` rather than `of` here.".to_string(),
priority: 126,
- });
+ })
}
fn description(&self) -> &'static str {