Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanshaoxiong committed Aug 27, 2022
1 parent ba11b7e commit a1074fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ public Option<FileSlice> getLatestFileSliceBeforeOrOn(String maxInstantTime) {
}

public Option<FileSlice> getLatestCompletedFileSliceBeforeOrOn(String maxInstantTime) {
return Option.fromJavaOptional(getAllFileSlices().filter(slice -> getTimeline().filterCompletedInstants().containsInstant(slice.getBaseInstantTime())).filter(slice -> compareTimestamps(slice.getBaseInstantTime(), LESSER_THAN_OR_EQUALS, maxInstantTime)).findFirst());
return Option.fromJavaOptional(getAllFileSlices().filter(slice -> getTimeline().filterCompletedInstants().containsInstant(slice.getBaseInstantTime()))
.filter(slice -> compareTimestamps(slice.getBaseInstantTime(), LESSER_THAN_OR_EQUALS, maxInstantTime)).findFirst());
}

/**
Expand Down

0 comments on commit a1074fe

Please sign in to comment.