Skip to content

Commit

Permalink
Enumerate over analyzers once.
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Oct 10, 2023
1 parent b0bd8a2 commit 580e31c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FSharp.Analyzers.SDK/FSharp.Analyzers.SDK.Client.fs
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,12 @@ type Client<'TAttribute, 'TContext when 'TAttribute :> AnalyzerAttribute and 'TC

not shouldExclude
)
|> Seq.toList

path, analyzers
)

for path, analyzers in analyzers do
let analyzers = Seq.toList analyzers

registeredAnalyzers.AddOrUpdate(path, analyzers, (fun _ _ -> analyzers))
|> ignore

Expand Down

0 comments on commit 580e31c

Please sign in to comment.