mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #81812 from Huang-Wei/fix-bug-staticcheck
Tolerate ending slash when running staticcheck
This commit is contained in:
commit
32d8b50fd8
@ -25,6 +25,7 @@ source "${KUBE_ROOT}/hack/lib/util.sh"
|
|||||||
kube::golang::verify_go_version
|
kube::golang::verify_go_version
|
||||||
|
|
||||||
FOCUS="${1:-}"
|
FOCUS="${1:-}"
|
||||||
|
FOCUS="${FOCUS%/}" # Remove the ending "/"
|
||||||
|
|
||||||
# See https://staticcheck.io/docs/checks
|
# See https://staticcheck.io/docs/checks
|
||||||
CHECKS=(
|
CHECKS=(
|
||||||
|
Loading…
Reference in New Issue
Block a user