Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding problem gitprompt #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Schubisu
Copy link

Adding a problem to make the user install bash-git-prompt.

Comment on lines 19 to 23
fail("Cannot find `gitprompt.sh` in the right location.")
return
if "GIT_BRANCH" not in os.environ.keys():
fail("Cannot verify that `gitprompt.sh` has been sourced correctly.")
return
Copy link

@palnabarun palnabarun Mar 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fail() calls sys.Exit inside the function, so return after calls to fail is not required. :)

@Schubisu
Copy link
Author

Thanks for pointing that out, I've removed the redundant returns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants