Skip to content

Commit 0742eda

Browse files
committed
refactor : simplify condition
1 parent 89ce666 commit 0742eda

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/fr/insee/genesis/domain/service/rawdata/RawResponseService.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,7 @@ private static void convertToCollectedVar(
365365
// Map for this variable (COLLECTED/EDITED -> value)
366366
Map<String, Object> states = JsonUtils.asMap(collectedVariable.getValue());
367367

368-
// nothing if no state
369-
if (states == null || states.isEmpty()) {
370-
continue;
371-
}
372-
373-
if (states.containsKey(stateKey)) {
368+
if (states != null && states.containsKey(stateKey)) {
374369
Object value = states.get(stateKey);
375370

376371
// liste ?

0 commit comments

Comments
 (0)