Remove redundant formatting

pull/4670/head
awsr 2026-03-05 19:20:05 -08:00
parent 61415ca305
commit af8622240c
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -1275,8 +1275,8 @@ def get_version(force=False):
try:
origin = sub_run('git remote get-url origin', check=True)[0].stdout
branch_name = sub_run('git rev-parse --abbrev-ref HEAD', check=True)[0].stdout
version['url'] = origin.replace('\n', '').removesuffix('.git') + '/tree/' + branch_name.replace('\n', '')
version['branch'] = branch_name.replace('\n', '')
version['url'] = origin.removesuffix('.git') + '/tree/' + branch_name
version['branch'] = branch_name
if version['branch'] == 'HEAD':
log.warning('Version: detached state detected')
except Exception as e: