Skip to content

Commit

Permalink
Remove excessive assert
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Aug 5, 2022
1 parent 985c5e4 commit 2616b8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ArduinoJson/Json/JsonDeserializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ class JsonDeserializer {
return skipKeyword("false");

case 'n':
ARDUINOJSON_ASSERT(variant.isNull());
// the variant should already by null, except if the same object key was
// used twice, as in {"a":1,"a":null}
return skipKeyword("null");

default:
Expand Down

0 comments on commit 2616b8f

Please sign in to comment.