Skip to content

Commit

Permalink
remove call to String in enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed May 28, 2024
1 parent aed1de9 commit 69ef33b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/core/03-connection/keeper/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (k *Keeper) ConnOpenAck(
if connection.State != types.INIT {
return errorsmod.Wrapf(
types.ErrInvalidConnectionState,
"connection state is not INIT (got %s)", connection.State.String(),
"connection state is not INIT (got %s)", connection.State,
)
}

Expand Down Expand Up @@ -269,7 +269,7 @@ func (k *Keeper) ConnOpenConfirm(
if connection.State != types.TRYOPEN {
return errorsmod.Wrapf(
types.ErrInvalidConnectionState,
"connection state is not TRYOPEN (got %s)", connection.State.String(),
"connection state is not TRYOPEN (got %s)", connection.State,
)
}

Expand Down
2 changes: 1 addition & 1 deletion modules/core/04-channel/keeper/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (k *Keeper) ChanOpenConfirm(
if channel.State != types.TRYOPEN {
return errorsmod.Wrapf(
types.ErrInvalidChannelState,
"channel state is not TRYOPEN (got %s)", channel.State.String(),
"channel state is not TRYOPEN (got %s)", channel.State,
)
}

Expand Down

0 comments on commit 69ef33b

Please sign in to comment.