Skip to content

Commit b0cb7b2

Browse files
shogo82148bmoffatt
andauthored
fix: events/codedeploy.go:16:2: SA9004: only the first constant in this group has an explicit type (staticcheck) (#322)
Co-authored-by: Bryan Moffatt <bmoffatt@users.noreply.github.com>
1 parent d520080 commit b0cb7b2

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.golangci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,3 @@ run:
2626
# CodeBuildPhaseTypeSubmitted CodeBuildPhaseType = "SUBMITTED"
2727
# ^
2828
- events/codebuild.go
29-
30-
# FIXME
31-
# events/codedeploy.go:16:2: SA9004: only the first constant in this group has an explicit type (staticcheck)
32-
# CodeDeployDeploymentStateFailure CodeDeployDeploymentState = "FAILURE"
33-
# ^
34-
- events/codedeploy.go

events/codedeploy.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ type CodeDeployDeploymentState string
1414

1515
const (
1616
CodeDeployDeploymentStateFailure CodeDeployDeploymentState = "FAILURE"
17-
CodeDeployDeploymentStateReady = "READY"
18-
CodeDeployDeploymentStateStart = "START"
19-
CodeDeployDeploymentStateStop = "STOP"
20-
CodeDeployDeploymentStateSuccess = "SUCCESS"
17+
CodeDeployDeploymentStateReady CodeDeployDeploymentState = "READY"
18+
CodeDeployDeploymentStateStart CodeDeployDeploymentState = "START"
19+
CodeDeployDeploymentStateStop CodeDeployDeploymentState = "STOP"
20+
CodeDeployDeploymentStateSuccess CodeDeployDeploymentState = "SUCCESS"
2121
)
2222

2323
// CodeDeployEvent is documented at:

0 commit comments

Comments
 (0)