mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
Removing bad token type check from AbstractGenericJsonConverter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user