chore: remove repetitive words (#20180)

This commit is contained in:
goofylfg 2024-04-25 15:29:09 +08:00 committed by GitHub
parent e141457f76
commit 00ec23cdbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View File

@ -65,7 +65,7 @@ func TestDatabase_ReverseIterator(t *testing.T) {
// seek past domain, which should make the iterator invalid and produce an error
require.False(t, iter.Valid())
// reverse iterator with with a start and end domain
// reverse iterator with a start and end domain
iter2, err := db.ReverseIterator(storeKey1, 1, []byte("key010"), []byte("key019"))
require.NoError(t, err)

View File

@ -62,7 +62,7 @@ func TestDatabase_ReverseIterator(t *testing.T) {
// seek past domain, which should make the iterator invalid and produce an error
require.False(t, iter.Valid())
// reverse iterator with with a start and end domain
// reverse iterator with a start and end domain
iter2, err := db.ReverseIterator(storeKey1, 1, []byte("key010"), []byte("key019"))
require.NoError(t, err)

View File

@ -273,7 +273,7 @@ func (s *StorageTestSuite) TestDatabase_Iterator() {
s.Require().False(itr.Valid())
}
// iterator with with a start and end domain over multiple versions
// iterator with a start and end domain over multiple versions
for v := uint64(1); v < 5; v++ {
itr2, err := db.Iterator(storeKey1Bytes, v, []byte("key010"), []byte("key019"))
s.Require().NoError(err)

View File

@ -255,7 +255,7 @@ var timeSize = len(FormatTimeBytes(time.Time{}))
func (timeKeyCodec) Decode(buffer []byte) (int, time.Time, error) {
if len(buffer) != timeSize {
return 0, time.Time{}, fmt.Errorf("invalid time buffer buffer size")
return 0, time.Time{}, fmt.Errorf("invalid time buffer size")
}
t, err := ParseTimeBytes(buffer)
if err != nil {

View File

@ -156,7 +156,7 @@ func (coin DecCoin) IsValid() bool {
// DecCoins defines a slice of coins with decimal values
type DecCoins []DecCoin
// NewDecCoins constructs a new coin set with with decimal values
// NewDecCoins constructs a new coin set with decimal values
// from DecCoins. The provided coins will be sanitized by removing
// zero coins and sorting the coin set. A panic will occur if the coin set is not valid.
func NewDecCoins(decCoins ...DecCoin) DecCoins {

View File

@ -54,7 +54,7 @@ type AppModuleBasic interface {
// AppModule is the form for an application module. Most of
// its functionality has been moved to extension interfaces.
// Deprecated: use appmodule.AppModule with a combination of extension interfaces interfaces instead.
// Deprecated: use appmodule.AppModule with a combination of extension interfaces instead.
type AppModule interface {
HasName

View File

@ -43,7 +43,7 @@ func TestSnapshotter(t *testing.T) {
require.NoError(t, err)
require.Empty(t, txm2.Size())
// restore with with height < ttl which should result in all unordered txs synced
// restore with height < ttl which should result in all unordered txs synced
txm3 := unorderedtx.NewManager(dataDir)
s3 := unorderedtx.NewSnapshotter(txm3)
err = s3.RestoreExtension(50, unorderedtx.SnapshotFormat, pr)