Skip to content

Commit

Permalink
fix: web based git provider shows even if there is no extra data
Browse files Browse the repository at this point in the history
  • Loading branch information
janoamaral committed Apr 15, 2024
1 parent 3f4fa3f commit 0801746
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wb-git-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ if [[ $BUG_COUNT -gt 0 ]]; then
BUG_STATUS="#[fg=${THEME[ghred]},bg=${THEME[background]},bold] ${RESET}${BUG_COUNT} "
fi

if [[ $PR_COUNT -gt 0 || $REVIEW_COUNT -gt 0 || $ISSUE_COUNT -gt 0 ]]; then
WB_STATUS="#[fg=${THEME[black]},bg=${THEME[background]},bold] $RESET$PROVIDER_ICON $RESET$PR_STATUS$REVIEW_STATUS$ISSUE_STATUS$BUG_STATUS"
fi
WB_STATUS="#[fg=${THEME[black]},bg=${THEME[background]},bold] $RESET$PROVIDER_ICON $RESET$PR_STATUS$REVIEW_STATUS$ISSUE_STATUS$BUG_STATUS"

echo "$WB_STATUS"

Expand Down

0 comments on commit 0801746

Please sign in to comment.