Skip to content

Commit

Permalink
chore: remove repetitive words (cosmos#20180)
Browse files Browse the repository at this point in the history
  • Loading branch information
goofylfg authored Apr 25, 2024
1 parent e141457 commit 00ec23c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion store/storage/rocksdb/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion store/storage/sqlite/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion store/storage/storage_test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion types/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion types/dec_coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion types/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion x/auth/ante/unorderedtx/snapshotter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 00ec23c

Please sign in to comment.