Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
YuexingZeng committed Feb 5, 2024
1 parent 123b94b commit 05c20f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/bridge/client/cli/query_withdraw.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cli //nolint:dupl
package cli

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions x/bridge/keeper/query_withdraw.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ func PaginateWithdraws(withdraws []types.Withdraw, pageReq *query.PageRequest) (
}
}

start, end := int(pageReq.Offset), int(pageReq.Offset+pageReq.Limit)
if end > len(withdraws) || end < 0 { // -ve end means that the end has overflown
start, end := int(pageReq.Offset), int(pageReq.Offset+pageReq.Limit) // #nosec
if end > len(withdraws) || end < 0 { // -ve end means that the end has overflown
end = len(withdraws)
}
if start > len(withdraws) || start < 0 {
Expand Down

0 comments on commit 05c20f1

Please sign in to comment.