Skip to content

Commit 7c47032

Browse files
committed
Fix a bug in BuildHelper
1 parent e0c9d24 commit 7c47032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/inria/jtravis/helpers/BuildHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ private Optional<List<Build>> allForDate(String slug, Date date, Date endDate, b
245245
Build lastBuild = buildList.get(buildList.size()-1);
246246

247247
if (firstBuild.getFinishedAt() != null && firstBuild.getFinishedAt().toInstant().isBefore(limitDateBeginOfTheRange)) {
248-
return Optional.empty();
248+
break;
249249
} else if (lastBuild.getFinishedAt().toInstant().isAfter(limitDateEndOfTheRange)) {
250250
optionalBuilds = this.next(builds);
251251
} else {

0 commit comments

Comments
 (0)