Skip to content

Commit 071eac6

Browse files
committed
nit
1 parent 83b8148 commit 071eac6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dbos/workflow.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,7 @@ func (c *dbosContext) RunAsWorkflow(_ DBOSContext, fn WorkflowFunc, input any, o
495495
if registeredWorkflow.maxRetries > 0 {
496496
params.maxRetries = registeredWorkflow.maxRetries
497497
}
498-
499-
// Use the custom workflow name if it was provided during registration
500-
if registeredWorkflow.name != "" {
498+
if len(registeredWorkflow.name) > 0 {
501499
params.workflowName = registeredWorkflow.name
502500
}
503501

0 commit comments

Comments
 (0)