Skip to content

Commit

Permalink
Merge branch 'hotfix/8.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
maximkhatskevich committed Feb 18, 2024
2 parents 15b1375 + a66bc22 commit cbb2d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/XCEUniFlow/4_Dispatcher/Dispatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ extension Dispatcher
@available(macOS 12.0, *)
func when<M: MutationDecriptor, R>(
_: M.Type,
given: ((M) throws -> R?)? = nil
given: (M) throws -> R?
) async throws -> R {

var resultMaybe: Result<R, Error>? = nil
Expand All @@ -262,7 +262,7 @@ extension Dispatcher
do
{
if
let output = try given?(mutation)
let output = try given(mutation)
{
resultMaybe = .success(output)
}
Expand Down

0 comments on commit cbb2d62

Please sign in to comment.