Skip to content

Commit ac6a45c

Browse files
committed
Fix linter
1 parent 5d23cfb commit ac6a45c

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

http/proxy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func (s *Service) Proxy(ctx context.Context, req *http.Request) (*http.Response,
2727
}
2828

2929
// proxy performs an HTTP proxy request using a reverse proxy and returns the response.
30+
//
31+
//nolint:revive
3032
func (s *Service) proxy(ctx context.Context, req *http.Request) (*http.Response, error) {
3133
endpoint := req.URL.Path
3234
query := req.URL.Query().Encode()

spec/bellatrix/executionpayload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func (e *ExecutionPayload) unpack(data *executionPayloadJSON) error {
289289
baseFeePerGasBEBytes := baseFeePerGas.Bytes()
290290
var baseFeePerGasLEBytes [32]byte
291291
baseFeeLen := len(baseFeePerGasBEBytes)
292-
for i := 0; i < baseFeeLen; i++ {
292+
for i := range baseFeeLen {
293293
baseFeePerGasLEBytes[i] = baseFeePerGasBEBytes[baseFeeLen-1-i]
294294
}
295295
copy(e.BaseFeePerGas[:], baseFeePerGasLEBytes[:])

spec/bellatrix/executionpayloadheader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func (e *ExecutionPayloadHeader) unpack(data *executionPayloadHeaderJSON) error
284284
baseFeePerGasBEBytes := baseFeePerGas.Bytes()
285285
var baseFeePerGasLEBytes [32]byte
286286
baseFeeLen := len(baseFeePerGasBEBytes)
287-
for i := 0; i < baseFeeLen; i++ {
287+
for i := range baseFeeLen {
288288
baseFeePerGasLEBytes[i] = baseFeePerGasBEBytes[baseFeeLen-1-i]
289289
}
290290
copy(e.BaseFeePerGas[:], baseFeePerGasLEBytes[:])

spec/capella/executionpayload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func (e *ExecutionPayload) unpack(data *executionPayloadJSON) error {
296296
baseFeePerGasBEBytes := baseFeePerGas.Bytes()
297297
var baseFeePerGasLEBytes [32]byte
298298
baseFeeLen := len(baseFeePerGasBEBytes)
299-
for i := 0; i < baseFeeLen; i++ {
299+
for i := range baseFeeLen {
300300
baseFeePerGasLEBytes[i] = baseFeePerGasBEBytes[baseFeeLen-1-i]
301301
}
302302
copy(e.BaseFeePerGas[:], baseFeePerGasLEBytes[:])

0 commit comments

Comments
 (0)