Add explicit brackets
@@ -2349,13 +2349,18 @@ public abstract class BaseTermReadSvcImpl implements ITermReadSvc {
public Optional<TermValueSet> findCurrentTermValueSet(String theUrl) {
if (TermReadSvcUtil.isLoincNotGenericUnversionedValueSet(theUrl)) {
Optional<String> vsIdOpt = TermReadSvcUtil.getValueSetId(theUrl);
- if (! vsIdOpt.isPresent()) return Optional.empty();
+ if (! vsIdOpt.isPresent()) {
+ return Optional.empty();
+ }
return myTermValueSetDao.findTermValueSetByForcedId(vsIdOpt.get());
}
List<TermValueSet> 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));
}
