mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-19 17:18:42 +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):
|
def output(request):
|
||||||
if not request.param:
|
if not request.param:
|
||||||
return ''
|
return ''
|
||||||
else:
|
return '''fatal: The current branch {} has no upstream branch.
|
||||||
return '''fatal: The current branch {} has no upstream branch.
|
To push the current branch and set the remote as upstream, use
|
||||||
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', [
|
@pytest.mark.parametrize('script, output', [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user