Skip to content

Commit 55bc418

Browse files
committed
remove redundant code
1 parent 55681ac commit 55bc418

File tree

1 file changed

+0
-5
lines changed
  • abci/strategies/currencypair

1 file changed

+0
-5
lines changed

abci/strategies/currencypair/hash.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ func (s *HashCurrencyPairStrategy) FromID(ctx sdk.Context, id uint64) (connectty
7474
}
7575

7676
cp, found := s.idCache[id]
77-
if found {
78-
return cp, nil
79-
}
80-
81-
cp, found = s.idCache[id]
8277
if !found {
8378
return connecttypes.CurrencyPair{}, fmt.Errorf("currency pair with sha256 hashed ID %d not found in x/oracle state", id)
8479
}

0 commit comments

Comments
 (0)