1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 14:48:49 +00:00

Remove redundant else

This commit is contained in:
David 2018-01-03 21:38:42 +00:00
parent 3c0cba290c
commit 7b5e703f50

View File

@ -7,13 +7,12 @@ from thefuck.types import Command
def output(request):
if not request.param:
return ''
else:
return '''fatal: The current branch {} has no upstream branch.
To push the current branch and set the remote as upstream, use
return '''fatal: The current branch {} has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin {}
git push --set-upstream origin {}
'''.format(request.param, request.param)
'''.format(request.param, request.param)
@pytest.mark.parametrize('script, output', [