Skip to content

Commit

Permalink
style(bindings-zeebe-command): Address lint errors for PR. (#3639)
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Brady <[email protected]>
  • Loading branch information
Scott Brady authored and Scott Brady committed Jan 11, 2025
1 parent 4468e32 commit d5bfcc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bindings/zeebe/command/throw_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"

"github.com/camunda/zeebe/clients/go/v8/pkg/commands"

"github.com/dapr/components-contrib/bindings"
)

Expand Down Expand Up @@ -55,7 +56,7 @@ func (z *ZeebeCommand) throwError(ctx context.Context, req *bindings.InvokeReque
cmd = cmd.ErrorMessage(payload.ErrorMessage)
}

var cmdDispatch commands.DispatchThrowErrorCommand = cmd
var cmdDispatch = cmd
if payload.Variables != nil {
cmdDispatch, err = cmd.VariablesFromObject(payload.Variables)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion bindings/zeebe/command/throw_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type mockThrowErrorCommandStep2 struct {
type mockDispatchThrowErrorCommand struct {
commands.DispatchThrowErrorCommand
errorMessage string
variables interface{}
variables interface{}
}

func (mc *mockThrowErrorClient) NewThrowErrorCommand() commands.ThrowErrorCommandStep1 {
Expand Down

0 comments on commit d5bfcc6

Please sign in to comment.