Skip to content

Commit 8b6b2dc

Browse files
committed
SonarQube findings resolution
Identical sub-expressions on both sides of operator "||". Issue link: https://sonarcloud.io/project/issues?open=AZWum43evizSu0tgQ8Kq&id=nrfconnect_sdk-mcuboot Ref: NCSDK-35334 Signed-off-by: Adam Szczygieł <[email protected]>
1 parent 13899cf commit 8b6b2dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zcbor/src/zcbor_decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ bool zcbor_unordered_map_search(zcbor_decoder_t key_decoder, zcbor_state_t *stat
926926
}
927927

928928
/* Skip over both the key and the value. */
929-
if (!zcbor_any_skip(state, NULL) || !zcbor_any_skip(state, NULL)) {
929+
if (!zcbor_any_skip(state, NULL)) {
930930
goto error;
931931
}
932932
} while (state->elem_count != elem_count);

0 commit comments

Comments
 (0)