Skip to content

Commit 6396f42

Browse files
committed
TestModule
1 parent 8b4c63c commit 6396f42

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

force-app/main/default/classes/test-module/TestModule.cls

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public class TestModule {
127127
private void setNested(Map<String, Object> record) {
128128
for (String fieldPath : this.fields.keySet()) {
129129
List<String> parts = fieldPath.split('\\.');
130-
130+
131131
for (Integer i = 0; i < parts.size() - 1; i++) {
132132
String part = parts[i];
133133

@@ -137,7 +137,7 @@ public class TestModule {
137137

138138
record = (Map<String, Object>) record.get(part);
139139
}
140-
140+
141141
record.put(parts[parts.size() - 1], this.fields.get(fieldPath));
142142
}
143143
}
@@ -146,12 +146,8 @@ public class TestModule {
146146
for (String relationship : this.children.keySet()) {
147147
List<SObject> children = this.children.get(relationship);
148148

149-
record.put(relationship, new Map<String, Object>{
150-
'totalSize' => children.size(),
151-
'done' => true,
152-
'records' => JSON.deserializeUntyped(JSON.serialize(children))
153-
});
149+
record.put(relationship, new Map<String, Object>{ 'totalSize' => children.size(), 'done' => true, 'records' => JSON.deserializeUntyped(JSON.serialize(children)) });
154150
}
155151
}
156152
}
157-
}
153+
}

0 commit comments

Comments
 (0)