Add explicit brackets

This commit is contained in:
juan.marchionatto 2021-09-27 13:47:23 -04:00
parent b4343a9823
commit 2dec5f0821
1 changed files with 7 additions and 2 deletions

View File

@ -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));
}