Skip to content

Commit fa4b741

Browse files
Change null check to use an optional
1 parent 8edf926 commit fa4b741

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/bfd-server-ng/src/main/java/gov/cms/bfd/server/ng/eob/EobResourceProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public Bundle searchByPatient(
122122
Optional.ofNullable(count),
123123
// we will support both offset and startIndex for now, but they can't be used together.
124124
// If both are provided, offset will take precedence
125-
offset != null ? Optional.of(offset) : FhirInputConverter.toIntOptional(startIndex),
125+
Optional.ofNullable(offset).or(() -> FhirInputConverter.toIntOptional(startIndex)),
126126
tagCriteria,
127127
claimTypeCodes,
128128
FhirInputConverter.parseSourceParameter(source));

0 commit comments

Comments
 (0)