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:
parent
3c0cba290c
commit
7b5e703f50
@ -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', [
|
||||
|
Loading…
x
Reference in New Issue
Block a user