Add explicit brackets
This commit is contained in:
parent
b4343a9823
commit
2dec5f0821
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue