mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Addressing nullability warnings in SimpleJson
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#if NETFRAMEWORK || NETSTANDARD2_0
|
||||
|
||||
#nullable enable
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
|
||||
|
||||
@@ -2,11 +2,14 @@
|
||||
using Newtonsoft.Json.Converters;
|
||||
using NuGet.Versioning;
|
||||
|
||||
//NB: This is explicitly enabled because this file is linked into multiple projects
|
||||
#nullable enable
|
||||
|
||||
namespace Velopack.Core;
|
||||
|
||||
public class SimpleJson
|
||||
{
|
||||
private static readonly JsonSerializerSettings Options = new JsonSerializerSettings {
|
||||
private static readonly JsonSerializerSettings Options = new() {
|
||||
Converters = { new StringEnumConverter(), new SemanticVersionConverter() },
|
||||
NullValueHandling = NullValueHandling.Ignore,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user