Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Nov 26, 2024
1 parent 3148a2d commit 9a8474c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 3 additions & 4 deletions tests/e2e/oracle/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (p priceTime) updateTimestamp() priceTime {
return p
}

//nolint:all
func (p priceTime) generateRealTimeStructs(detID string, sourceID uint64) (priceTime, oracletypes.PriceSource) {
retP := p.updateTimestamp()
pTimeDetID := retP.getPriceTimeDetID(detID)
Expand Down Expand Up @@ -70,8 +71,6 @@ var (
Timestamp: time.Now().UTC().Format(layout),

Check warning

Code scanning / CodeQL

Calling the system time Warning test

Calling the system time may be a possible source of non-determinism
}

stakerChanges1 = [][]int{
[]int{0, -4},
}
priceNST1 = generateNSTPriceTime(stakerChanges1)
stakerChanges1 = [][]int{{0, -4}}
priceNST1 = generateNSTPriceTime(stakerChanges1)
)
1 change: 0 additions & 1 deletion tests/e2e/oracle/helper_nstconvert.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/imroc/biu"
)

//nolint:unused
func convertBalanceChangeToBytes(stakerChanges [][]int) []byte {
if len(stakerChanges) == 0 {
// length equals to 0 means that alls takers have efb of 32 with 0 changes
Expand Down
4 changes: 1 addition & 3 deletions x/oracle/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ const (
NSTIDPrefix = "NST"
)

var (
DelimiterForCombinedKey = byte('/')
)
var DelimiterForCombinedKey = byte('/')

func Uint64Bytes(value uint64) []byte {
valueBytes := make([]byte, 8)
Expand Down

0 comments on commit 9a8474c

Please sign in to comment.