Skip to content

Commit

Permalink
Use F# match instead of if
Browse files Browse the repository at this point in the history
  • Loading branch information
codeconscious committed Aug 17, 2024
1 parent bc2bc20 commit 8bba62d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CCVTAC.FSharp/Settings.fs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ module Settings =

[<CompiledName("Summarize")>]
let summarize settings =
let onOrOff b =
if b = true then "ON" else "OFF"
let onOrOff = function
| true -> "ON"
| false -> "OFF"

let pluralize (label: string) count =
if count = 1
Expand Down

0 comments on commit 8bba62d

Please sign in to comment.