fix: Remove extra newlines in error message output

- Removed extra newlines from error message in push_changes function
- Simplified error output formatting for better readability
- Maintained consistent error handling pattern
This commit is contained in:
bobo.yang 2025-03-07 11:07:34 +08:00
parent f6c4d52b90
commit bb1afee665

View File

@ -385,7 +385,7 @@ def push_changes():
try:
current_branch = get_current_branch()
if not current_branch:
print("Could not determine current branch. Push failed.", end="\n\n", file=sys.stderr, flush=True)
print("Could not determine current branch. Push failed.", file=sys.stderr, flush=True)
return False
print(f"Pushing changes to origin/{current_branch}...", end="\n\n", flush=True)