Fix syntax error which caused us to always update

This commit is contained in:
Dan Ryan
2017-11-03 21:30:58 -04:00
parent 7453b2204c
commit 44f98b9e62
+4 -3
View File
@@ -1622,9 +1622,10 @@ def cli(
# Awesome sauce.
click.echo(crayons.normal(xyzzy, bold=True))
if not update and need_update_check():
# Spun off in background thread, not unlike magic.
check_for_updates()
if not update:
if need_update_check():
# Spun off in background thread, not unlike magic.
check_for_updates()
else:
# Update pip to latest version.
ensure_latest_pip()