Skip to content

Commit d4a7f33

Browse files
committed
Lint
1 parent 9b457fd commit d4a7f33

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

api/handlers/confirmations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ func (h *ConfirmationsHandler) HandleRequest(w http.ResponseWriter, r *http.Requ
3737
data, _ := json.Marshal(confirmations)
3838
w.Header().Set("Content-Type", "application/json")
3939
w.WriteHeader(http.StatusOK)
40-
w.Write(data)
40+
_, _ = w.Write(data)
4141
}

app/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ func Run() error {
167167
sigChn,
168168
config.Tokens,
169169
config.ConfirmationsByValue,
170+
// nolint:gosec
170171
time.Duration(config.GeneralChainConfig.Blocktime)*time.Second)
171172
go acrossMh.Listen(ctx)
172173

chains/evm/message/across.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ func (h *AcrossMessageHandler) waitForConfirmations(
286286
return nil
287287
}
288288

289+
// nolint:gosec
289290
time.Sleep(time.Duration(uint64(h.blocktime) * (requiredConfirmations - confirmations.Uint64())))
290291
}
291292
}

price/coinmarketcap_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (s *CoinmarketcapAPITestSuite) SetupTest() {
5656
},
5757
}
5858
respBytes, _ := json.Marshal(response)
59-
w.Write(respBytes)
59+
_, _ = w.Write(respBytes)
6060
return
6161
}
6262

@@ -86,7 +86,7 @@ func (s *CoinmarketcapAPITestSuite) TestTokenPrice_InvalidSymbol() {
8686
func (s *CoinmarketcapAPITestSuite) TestTokenPrice_APIError() {
8787
s.testServer.Config.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
8888
w.WriteHeader(http.StatusInternalServerError)
89-
io.WriteString(w, `{"status": {"error_code": 500, "error_message": "Internal Server Error"}}`)
89+
_, _ = io.WriteString(w, `{"status": {"error_code": 500, "error_message": "Internal Server Error"}}`)
9090
})
9191

9292
price, err := s.api.TokenPrice("BTC")

0 commit comments

Comments
 (0)