diff --git a/project.py b/project.py index 8274f022..cf58a624 100644 --- a/project.py +++ b/project.py @@ -792,10 +792,7 @@ class Project(object): def HasChanges(self): """Returns true if there are uncommitted changes. """ - if self.UncommitedFiles(get_all=False): - return True - else: - return False + return bool(self.UncommitedFiles(get_all=False)) def PrintWorkTreeStatus(self, output_redir=None, quiet=False): """Prints the status of the repository to stdout.