Skip to content

Commit d341805

Browse files
tscolarijjcollinge
andauthored
Fix name check from options
Co-authored-by: Joni Collinge <[email protected]> Signed-off-by: Tiago Scolari <[email protected]>
1 parent 40fed9b commit d341805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (ww *WorkflowWorker) RegisterWorkflow(w Workflow, opts ...registerOption) e
137137
}
138138
}
139139

140-
if options.Name != "" {
140+
if options.Name == "" {
141141
// get the function name for the passed workflow if there's
142142
// no explicit name provided.
143143
name, err := getFunctionName(w)

0 commit comments

Comments
 (0)