mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Removing bad token type check from AbstractGenericJsonConverter
This commit is contained in:
parent
45d88b1efb
commit
ee03f85704
2 changed files with 13 additions and 3 deletions
|
|
@ -0,0 +1,13 @@
|
|||
using NUnit.Framework;
|
||||
|
||||
namespace ICD.Common.Utils.Tests.Json
|
||||
{
|
||||
public abstract class AbstractGenericJsonConverterTest
|
||||
{
|
||||
[Test]
|
||||
public abstract void WriteJsonTest();
|
||||
|
||||
[Test]
|
||||
public abstract void ReadJsonTest();
|
||||
}
|
||||
}
|
||||
|
|
@ -45,9 +45,6 @@ namespace ICD.Common.Utils.Json
|
|||
public sealed override object ReadJson(JsonReader reader, Type objectType, object existingValue,
|
||||
JsonSerializer serializer)
|
||||
{
|
||||
if (reader.TokenType == JsonToken.Null)
|
||||
return null;
|
||||
|
||||
return ReadJson(reader, (T)existingValue, serializer);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue