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

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=(