From 5ef47656c5650b829a52e143d5a1b75585dedb26 Mon Sep 17 00:00:00 2001 From: Autofix Date: Sat, 9 Aug 2025 03:05:18 +0000 Subject: [PATCH] Autofix: trailing-spaces --- dev/github-token.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/github-token.sh b/dev/github-token.sh index 8be07b2260e6e7..4672480b7123dd 100755 --- a/dev/github-token.sh +++ b/dev/github-token.sh @@ -8,11 +8,11 @@ if [ -z "$GH_TOKEN" ] && command -v git >/dev/null 2>&1; then # Attempt to get token from git credentials, suppress errors TOKEN=$(printf 'protocol=https\nhost=github.com\n' | git credential fill 2>/dev/null | awk -F= '/password/ {print $2}' 2>/dev/null) - + # Only export if we got a non-empty token if [ -n "$TOKEN" ]; then export GH_TOKEN="$TOKEN" fi - + unset TOKEN fi