Skip to content

Commit

Permalink
Fix issue in ValueOption|Option.Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
fcallejon committed Nov 18, 2023
1 parent a5aee9a commit 7973ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FSharpPlus/Extensions/Extensions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module Extensions =
let mutable accumulator = ArrayCollector<'t> ()
let mutable noneFound = false
use e = t.GetEnumerator ()
while e.MoveNext () && noneFound do
while e.MoveNext () && not noneFound do
match e.Current with
| Some v -> accumulator.Add v
| None -> noneFound <- true
Expand Down Expand Up @@ -168,7 +168,7 @@ module Extensions =
let mutable accumulator = ArrayCollector<'t> ()
let mutable noneFound = false
use e = t.GetEnumerator ()
while e.MoveNext () && noneFound do
while e.MoveNext () && not noneFound do
match e.Current with
| ValueSome v -> accumulator.Add v
| ValueNone -> noneFound <- true
Expand Down

0 comments on commit 7973ce5

Please sign in to comment.