Skip to content

Commit b2751cf

Browse files
committed
Tolerate ending slash when running staticcheck
1 parent 37651f1 commit b2751cf

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)