Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Jan 17, 2024
1 parent 0e1a07f commit 218ed2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions oracle/provider/astroport.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,8 @@ func (p *AstroportProvider) getAvailableAssets() (map[string]types.CurrencyPair,
switch asset.QuoteSymbol.(type) {

Check failure on line 221 in oracle/provider/astroport.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

switch with only one case can be replaced by an if-then
case string:
quoteSymbol = strings.ToUpper(asset.QuoteSymbol.(string))
default:
// leave quote symbol to be empty string
}

availablePairs[tickerID] = types.CurrencyPair{
Base: strings.ToUpper(asset.BaseSymbol),
Quote: quoteSymbol,
Expand Down
2 changes: 1 addition & 1 deletion oracle/provider/astroport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestAstroportProvider_GetTickers(t *testing.T) {
require.NotEmpty(t, availPairs)

p.StartConnections()
time.Sleep(6 * time.Second)
time.Sleep(10 * time.Second)

res, err := p.GetTickerPrices(pairs...)
require.NoError(t, err)
Expand Down

0 comments on commit 218ed2a

Please sign in to comment.