From 8cff4bd20806f0e316b7f0bf1ff39b916a4eac19 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Sat, 13 May 2017 15:21:08 +0200 Subject: [PATCH] Removed logically redundant part of an if statement. The len(self.commits) > 0 check was already being performed one level up. --- gitinspector/changes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitinspector/changes.py b/gitinspector/changes.py index 7816c08..b356772 100644 --- a/gitinspector/changes.py +++ b/gitinspector/changes.py @@ -222,7 +222,7 @@ class Changes(object): self.commits = [item for sublist in self.commits for item in sublist] if len(self.commits) > 0: - if interval.has_interval() and len(self.commits) > 0: + if interval.has_interval(): interval.set_ref(self.commits[-1].sha) self.first_commit_date = datetime.date(int(self.commits[0].date[0:4]), int(self.commits[0].date[5:7]),