Skip to content

Commit 9df1c38

Browse files
committed
Fixed Checkstyle warnings.
1 parent 2ee57dd commit 9df1c38

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

service/src/main/java/uk/nhs/adaptors/gp2gp/ehr/mapper/ConditionLinkSetMapper.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public String mapConditionToLinkSet(Condition condition, boolean isNested) {
6464
var builder = ConditionLinkSetMapperParameters.builder()
6565
.isNested(isNested)
6666
.linkSetId(idMapper.getOrNew(ResourceType.Condition, condition.getIdElement()));
67-
67+
6868
testForValidReferences(condition);
6969

7070
buildEffectiveTimeLow(condition).ifPresent(builder::effectiveTimeLow);
@@ -107,14 +107,14 @@ public String mapConditionToLinkSet(Condition condition, boolean isNested) {
107107
}
108108

109109
public void testForValidReferences(Condition condition) {
110-
for(Extension extension : condition.getExtension()) {
111-
if(!(extension.getValue() instanceof Reference)) {
110+
for (Extension extension : condition.getExtension()) {
111+
if (!(extension.getValue() instanceof Reference)) {
112112
return;
113113
}
114-
IdType idType = (IdType) ((Reference)extension.getValue()).getReferenceElement();
115-
try{
114+
IdType idType = (IdType) ((Reference) extension.getValue()).getReferenceElement();
115+
try {
116116
messageContext.getInputBundleHolder().getResource(idType);
117-
}catch(Exception e){
117+
} catch (Exception e) {
118118
throw e;
119119
}
120120
}

0 commit comments

Comments
 (0)