Skip to content

Commit 8edf926

Browse files
fix formatting
1 parent e7d5c7c commit 8edf926

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

  • apps/bfd-server-ng/src/main/java/gov/cms/bfd/server/ng/util

apps/bfd-server-ng/src/main/java/gov/cms/bfd/server/ng/util/FhirUtil.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,7 @@ record Page(List<Bundle.BundleEntryComponent> items, boolean hasMore) {}
184184
(list, count) ->
185185
new Page(
186186
trimEntriesToLimit(list, count, limit),
187-
determineHasMore(count, limit)
188-
)
189-
)
190-
);
187+
determineHasMore(count, limit))));
191188

192189
var bundle = new Bundle().setEntry(page.items());
193190

@@ -198,14 +195,15 @@ record Page(List<Bundle.BundleEntryComponent> items, boolean hasMore) {}
198195
return bundle;
199196
}
200197

201-
private static List<Bundle.BundleEntryComponent> trimEntriesToLimit(List<Bundle.BundleEntryComponent> entries,long count,Optional<Integer> limit){
202-
if(limit.isPresent() && count > limit.get().longValue()) {
198+
private static List<Bundle.BundleEntryComponent> trimEntriesToLimit(
199+
List<Bundle.BundleEntryComponent> entries, long count, Optional<Integer> limit) {
200+
if (limit.isPresent() && count > limit.get().longValue()) {
203201
return entries.subList(0, limit.get());
204202
}
205203
return entries;
206204
}
207205

208-
private static boolean determineHasMore(long count,Optional<Integer> limit){
206+
private static boolean determineHasMore(long count, Optional<Integer> limit) {
209207
return limit.isPresent() && count > limit.get().longValue();
210208
}
211209

0 commit comments

Comments
 (0)