Skip to content

Commit 4188819

Browse files
For testing the lint failures (#1087)
1 parent 498fc02 commit 4188819

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/build-and-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- name: Set up golangci-lint
7171
uses: golangci/golangci-lint-action@v3
7272
with:
73-
version: v1.55.2
73+
version: latest
7474
args: --timeout=5m
7575
skip-cache: true
7676

pkg/monitor/sqsevent/sqs-monitor.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -363,29 +363,29 @@ func (m SQSMonitor) getNodeInfo(instanceID string) (*NodeInfo, error) {
363363
if aerr, ok := err.(awserr.Error); ok && aerr.Code() == "InvalidInstanceID" {
364364
msg := fmt.Sprintf("Invalid instance id %s provided", instanceID)
365365
log.Warn().Msg(msg)
366-
return nil, skip{fmt.Errorf(msg)}
366+
return nil, skip{fmt.Errorf("%s", msg)}
367367
}
368368
if aerr, ok := err.(awserr.Error); ok && aerr.Code() == "InvalidInstanceID.NotFound" {
369369
msg := fmt.Sprintf("No instance found with instance-id %s", instanceID)
370370
log.Warn().Msg(msg)
371-
return nil, skip{fmt.Errorf(msg)}
371+
return nil, skip{fmt.Errorf("%s", msg)}
372372
}
373373
if aerr, ok := err.(awserr.Error); ok && aerr.Code() == "InvalidInstanceID.Malformed" {
374374
msg := fmt.Sprintf("Malformed instance-id %s", instanceID)
375375
log.Warn().Msg(msg)
376-
return nil, skip{fmt.Errorf(msg)}
376+
return nil, skip{fmt.Errorf("%s", msg)}
377377
}
378378
if aerr, ok := err.(awserr.Error); ok && aerr.Code() == "InvalidInstanceID.NotLinkable" {
379379
msg := fmt.Sprintf("Instance-id %s not linkable", instanceID)
380380
log.Warn().Msg(msg)
381-
return nil, skip{fmt.Errorf(msg)}
381+
return nil, skip{fmt.Errorf("%s", msg)}
382382
}
383383
return nil, err
384384
}
385385
if len(result.Reservations) == 0 || len(result.Reservations[0].Instances) == 0 {
386386
msg := fmt.Sprintf("No reservation with instance-id %s", instanceID)
387387
log.Warn().Msg(msg)
388-
return nil, skip{fmt.Errorf(msg)}
388+
return nil, skip{fmt.Errorf("%s", msg)}
389389
}
390390

391391
instance := result.Reservations[0].Instances[0]

0 commit comments

Comments
 (0)