Skip to content

Commit

Permalink
UnneededRecKeyword: apply fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Dec 28, 2023
1 parent 24e3a5f commit 83fe12e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FSharpLint.Core/Rules/Conventions/UnneededRecKeyword.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ let runner (args: AstNodeRuleParams) =

let functionCalls =
symbolUses
|> Seq.filter (fun (symbol) -> symbol.Symbol.DisplayName = funcName)
|> Seq.filter (fun (symbol) ->
symbol.Symbol.DisplayName = funcName
&& symbol.Range = range)

if (functionCalls |> Seq.length) <= 1 then
{ Range = range
Expand Down

0 comments on commit 83fe12e

Please sign in to comment.