mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-12-22 21:52:15 +01:00
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:
parent
983d3d05bd
commit
8cff4bd208
1 changed files with 1 additions and 1 deletions
|
@ -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]),
|
||||
|
|
Loading…
Reference in a new issue