Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Aug 22, 2024
1 parent 779ec34 commit 553d61e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flowkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func (f *Flowkit) AddContract(

updateExisting := update(existingContract, program.Code())
if exists && !updateExisting {
return flow.EmptyID, false, fmt.Errorf(fmt.Sprintf("contract %s exists in account %s", name, account.Name))
return flow.EmptyID, false, fmt.Errorf("contract %s exists in account %s", name, account.Name)
}

if exists && updateExisting {
Expand Down
3 changes: 2 additions & 1 deletion gateway/emulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"github.com/onflow/cadence/runtime"
"github.com/onflow/flow-emulator/adapters"
"github.com/onflow/flow-emulator/emulator"
"github.com/pkg/errors"

"github.com/onflow/flow-go-sdk"
"github.com/onflow/flow-go-sdk/crypto"
Expand All @@ -49,7 +50,7 @@ type EmulatorGateway struct {
}

func UnwrapStatusError(err error) error {
return fmt.Errorf(status.Convert(err).Message())
return errors.New(status.Convert(err).Message())
}

func NewEmulatorGateway(key *EmulatorKey) *EmulatorGateway {
Expand Down

0 comments on commit 553d61e

Please sign in to comment.