From 2dec5f0821728387cba07fe0d087dbf34b9ee879 Mon Sep 17 00:00:00 2001 From: "juan.marchionatto" Date: Mon, 27 Sep 2021 13:47:23 -0400 Subject: [PATCH] Add explicit brackets --- .../java/ca/uhn/fhir/jpa/term/BaseTermReadSvcImpl.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseTermReadSvcImpl.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseTermReadSvcImpl.java index a2452705c90..57c42879c4e 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseTermReadSvcImpl.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseTermReadSvcImpl.java @@ -2349,13 +2349,18 @@ public abstract class BaseTermReadSvcImpl implements ITermReadSvc { public Optional findCurrentTermValueSet(String theUrl) { if (TermReadSvcUtil.isLoincNotGenericUnversionedValueSet(theUrl)) { Optional vsIdOpt = TermReadSvcUtil.getValueSetId(theUrl); - if (! vsIdOpt.isPresent()) return Optional.empty(); + if (! vsIdOpt.isPresent()) { + return Optional.empty(); + } return myTermValueSetDao.findTermValueSetByForcedId(vsIdOpt.get()); } List termValueSetList = myTermValueSetDao.findTermValueSetByUrl(Pageable.ofSize(1), theUrl); - if (termValueSetList.isEmpty()) return Optional.empty(); + if (termValueSetList.isEmpty()) { + return Optional.empty(); + } + return Optional.of(termValueSetList.get(0)); }