Merge pull request #81812 from Huang-Wei/fix-bug-staticcheck

Tolerate ending slash when running staticcheck
This commit is contained in:
Kubernetes Prow Robot 2019-08-25 19:54:20 -07:00 committed by GitHub
commit 32d8b50fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ source "${KUBE_ROOT}/hack/lib/util.sh"
kube::golang::verify_go_version
FOCUS="${1:-}"
FOCUS="${FOCUS%/}" # Remove the ending "/"
# See https://staticcheck.io/docs/checks
CHECKS=(