Skip to content

Commit d97e285

Browse files
committed
Remove unnecessary assign
Signed-off-by: Tiago Scolari <[email protected]>
1 parent b82732f commit d97e285

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

workflow/worker.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ func WithName(name string) registerOption {
121121
}
122122
}
123123

124-
func processRegisterOptions(defaultOptions registerOptions, opts ...registerOption) (registerOptions, error) {
125-
options := defaultOptions
124+
func processRegisterOptions(options registerOptions, opts ...registerOption) (registerOptions, error) {
126125
for _, opt := range opts {
127126
if err := opt(&options); err != nil {
128127
return options, fmt.Errorf("failed processing options: %w", err)

0 commit comments

Comments
 (0)