Skip to content

Commit 811a038

Browse files
committed
fix linter
1 parent bf392ef commit 811a038

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hermes/latest_price_sse.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package hermes
33
import (
44
"context"
55
"encoding/json"
6+
"errors"
67
"fmt"
78
"math/rand"
89
"time"
@@ -43,7 +44,7 @@ func (c *Client) GetCachedLatestPriceUpdates(
4344
) (map[string]*types.LatestPriceData, error) {
4445
// Validate parameters
4546
if len(priceFeeds) == 0 {
46-
return nil, fmt.Errorf("zero length of price feeds is an invalid input")
47+
return nil, errors.New("zero length of price feeds is an invalid input")
4748
}
4849

4950
// Wait for the ready signal

0 commit comments

Comments
 (0)