Skip to content

Commit 32d8b50

Browse files
authored
Merge pull request kubernetes#81812 from Huang-Wei/fix-bug-staticcheck
Tolerate ending slash when running staticcheck
2 parents 12e6930 + b2751cf commit 32d8b50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hack/verify-staticcheck.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ source "${KUBE_ROOT}/hack/lib/util.sh"
2525
kube::golang::verify_go_version
2626

2727
FOCUS="${1:-}"
28+
FOCUS="${FOCUS%/}" # Remove the ending "/"
2829

2930
# See https://staticcheck.io/docs/checks
3031
CHECKS=(

0 commit comments

Comments
 (0)