Skip to content

Commit

Permalink
Merge pull request #669 from overmindtech/remove-deadcode
Browse files Browse the repository at this point in the history
Removed `deadcode` as per overmindtech/golangci-lint_config#4
  • Loading branch information
dylanratcliffe authored Nov 12, 2024
2 parents ee2fb79 + 88de757 commit 8b4c4e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ jobs:
- name: Vet
run: go vet ./...

- name: find deadcode
run: |
go install golang.org/x/tools/cmd/deadcode@latest
deadcode . > deadcode.txt
diff .deadcode-ignore deadcode.txt
# get .golangci.yml from github.com/overmindtech/golangci-lint_config
- name: Get .golangci.yml from github.com/overmindtech/golangci-lint_configs
run: |
Expand Down
2 changes: 2 additions & 0 deletions adapters/ec2-instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ func instanceOutputMapper(_ context.Context, _ *ec2.Client, scope string, _ *ec2
item.Health = sdp.Health_HEALTH_PENDING.Enum()
case codeStopping:
item.Health = sdp.Health_HEALTH_PENDING.Enum()
case codeTerminated, codeStopped:
// No health for things that aren't running
}
}

Expand Down

0 comments on commit 8b4c4e4

Please sign in to comment.