Skip to content

Commit

Permalink
drop the else
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Nov 16, 2024
1 parent d95dd4b commit b7c1dc3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions precompiles/staking/method_get_rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ func (c *Contract) getRewards(
if errors.Is(err, distrtypes.ErrNoDelegationExists) {
rewards := make([]DecCoin, 0)
return method.Outputs.Pack(rewards)
} else {
return nil, &precompiletypes.ErrUnexpected{
When: "DelegationRewards",
Got: err.Error(),
}
}

return nil, &precompiletypes.ErrUnexpected{
When: "DelegationRewards",
Got: err.Error(),
}
}

Expand Down

0 comments on commit b7c1dc3

Please sign in to comment.