mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
project: simplify if-statement
Change-Id: I05e4505b45963fe6e85cf74a669afafd00fc83c0 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/340457 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Martin Geisler <mgeisler@google.com>
This commit is contained in:
parent
9fb64ae29c
commit
8db78c7d4d
@ -792,10 +792,7 @@ class Project(object):
|
|||||||
def HasChanges(self):
|
def HasChanges(self):
|
||||||
"""Returns true if there are uncommitted changes.
|
"""Returns true if there are uncommitted changes.
|
||||||
"""
|
"""
|
||||||
if self.UncommitedFiles(get_all=False):
|
return bool(self.UncommitedFiles(get_all=False))
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
|
|
||||||
def PrintWorkTreeStatus(self, output_redir=None, quiet=False):
|
def PrintWorkTreeStatus(self, output_redir=None, quiet=False):
|
||||||
"""Prints the status of the repository to stdout.
|
"""Prints the status of the repository to stdout.
|
||||||
|
Loading…
Reference in New Issue
Block a user