Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Chad Retz <[email protected]>
  • Loading branch information
bergundy and cretz authored May 17, 2024
1 parent 16d6fd4 commit cae90d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ type (
cause error
}

// NexusOperationError is an error returned when a Nexus Operation has failed.
// NexusOperationError is an error returned when a Nexus Operation has failed inside a workflow.
//
// NOTE: Experimental
NexusOperationError struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,7 @@ func (wc *workflowEnvironmentInterceptor) ExecuteNexusOperation(ctx Context, cli
executionFuture: executionFuture.(*futureImpl),
}

// Immediately return if the context has an error without spawning the child workflow
// Immediately return if the context has an error without spawning the operation
if ctx.Err() != nil {
executionSettable.Set(nil, ctx.Err())
mainSettable.Set(nil, ctx.Err())
Expand Down

0 comments on commit cae90d5

Please sign in to comment.