Removed logically redundant part of an if statement.

The len(self.commits) > 0 check was already being performed one level up.
This commit is contained in:
Adam Waldenberg 2017-05-13 15:21:08 +02:00
parent 983d3d05bd
commit 8cff4bd208
1 changed files with 1 additions and 1 deletions

View File

@ -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]),