Skip to content

Commit

Permalink
Remove spurious option type
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug123 committed Jan 26, 2024
1 parent b0421e3 commit e975e35
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/FSharp.Analyzers.Cli/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,11 @@ let runProjectAux
|> Async.Parallel

return
Some
[
for messages in messagesPerAnalyzer do
let mappedMessages = messages |> List.map (mapMessageToSeverity mappings)
yield! mappedMessages
]
[
for messages in messagesPerAnalyzer do
let mappedMessages = messages |> List.map (mapMessageToSeverity mappings)
yield! mappedMessages
]
}

let runProject
Expand Down Expand Up @@ -623,6 +622,7 @@ let main argv =
| [], Some fscArgs ->
runFscArgs client fscArgs exclInclFiles severityMapping
|> Async.RunSynchronously
|> Some
| projects, None ->
for projPath in projects do
if not (File.Exists(projPath)) then
Expand All @@ -635,7 +635,6 @@ let main argv =
)
|> Async.Sequential
|> Async.RunSynchronously
|> Array.choose id
|> List.concat
|> Some

Expand Down

0 comments on commit e975e35

Please sign in to comment.