Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SamboyCoding committed Sep 21, 2022
1 parent 6c95666 commit a508448
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tomlet/TomlSerializationMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,13 @@ private static TomlValue GenericDictionarySerializer<TKey, TValue>(Dictionary<TK

if(keyAsString == null)
continue;

var value = valueSerializer(entry.Value);

if(value == null)
continue;

ret.PutValue(keyAsString, valueSerializer(entry.Value), true);
ret.PutValue(keyAsString, value, true);
}

return ret;
Expand Down

0 comments on commit a508448

Please sign in to comment.