Skip to content

Commit

Permalink
chore: address deepsource warns
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Aug 15, 2023
1 parent 50b4597 commit 6494307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/database/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (p *PebbleDB) Get(key []byte) (value []byte, err error) {
}

valueCpy := make([]byte, len(value))
copy(valueCpy[:], value)
copy(valueCpy, value)
return valueCpy, err
}

Expand Down Expand Up @@ -117,15 +117,15 @@ func (p *PebbleDB) NewBatch() Batch {
}
}

// NewBatch returns an implementation of Iterator interface using the
// NewIterator returns an implementation of Iterator interface using the
// internal database
func (p *PebbleDB) NewIterator() Iterator {
return &pebbleIterator{
p.db.NewIter(nil),
}
}

// NewBatch returns an implementation of Iterator over a specific
// NewPrefixIterator returns an implementation of Iterator over a specific
// keys that contains the prefix
// more info: https://github.com/ChainSafe/gossamer/pull/3434#discussion_r1291503323
func (p *PebbleDB) NewPrefixIterator(prefix []byte) Iterator {
Expand Down

0 comments on commit 6494307

Please sign in to comment.