Skip to content

Commit 8e19104

Browse files
author
Alexander Matyushentsev
authored
chore: switch CI to golangci/golangci-lint-action@v2 (argoproj#259)
Signed-off-by: Alexander Matyushentsev <[email protected]>
1 parent 2a9c144 commit 8e19104

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/ci.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
with:
2424
go-version: '1.15.6'
2525
- run: make test
26-
- uses: actions-contrib/golangci-lint@v1
26+
- name: Run golangci-lint
27+
uses: golangci/golangci-lint-action@v2
2728
with:
28-
args: run --timeout=5m
29-
env:
30-
GOROOT: ""
29+
version: v1.38.0
30+
args: --timeout 5m
3131
- uses: codecov/[email protected]
3232
with:
3333
token: ${{ secrets.CODECOV_TOKEN }} #required

pkg/sync/sync_context.go

-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,6 @@ func isNamespaceWithName(res *unstructured.Unstructured, ns string) bool {
775775

776776
func isNamespaceKind(res *unstructured.Unstructured) bool {
777777
return res != nil &&
778-
res.GetObjectKind() != nil &&
779778
res.GetObjectKind().GroupVersionKind().Group == "" &&
780779
res.GetKind() == kube.NamespaceKind
781780
}

0 commit comments

Comments
 (0)