Skip to content

Commit

Permalink
style: indent
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisdg committed Sep 20, 2021
1 parent 692ba10 commit 9488395
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/Dedge.Cardizer/Dedge.Cardizer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,9 @@ type Cardizer =
static member NextVisa([<Optional; DefaultParameterValue(VisaLengthOptions.Random)>] visaLengthOption) =
let length =
match visaLengthOption with
| VisaLengthOptions.Thirteen -> 13
| VisaLengthOptions.Sixteen -> 16
| _ ->
if Cardizer.next 2 = 0 then
13
else
16
| VisaLengthOptions.Random -> if Cardizer.next 2 = 0 then 13 else 16
| _ -> int visaLengthOption


Cardizer.GenerateCard [ 4 ] length

Expand Down Expand Up @@ -229,12 +225,7 @@ type Cardizer =
/// </code>
/// </example>
static member NextAmex() =
let second =
if Cardizer.next 2 = 0 then
4
else
7

let second = if Cardizer.next 2 = 0 then 4 else 7
Cardizer.GenerateCard [3; second] 15

/// <summary>Returns a random Discover number that is of the given available length.</summary>
Expand Down

0 comments on commit 9488395

Please sign in to comment.