Skip to content

Commit f5a1c85

Browse files
Update src/FsToolkit.ErrorHandling.JobResult/JobResult.fs
Co-authored-by: Jimmy Byrd <[email protected]>
1 parent 99fca2f commit f5a1c85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FsToolkit.ErrorHandling.JobResult/JobResult.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ module JobResult =
124124
option
125125
|> Job.map (Result.requireSome error)
126126

127-
let inline requireSomeWith error option =
127+
let inline requireSomeWith ifErrorThunk option =
128128
option
129-
|> Job.map (Result.requireSomeWith error)
129+
|> Job.map (Result.requireSomeWith ifErrorThunk)
130130

131131
// Converts an job-wrapped Option to a Result, using the given error if Some.
132132
let inline requireNone error option =

0 commit comments

Comments
 (0)