remove `#nullable disable` in mod build package (#837)

Since it targets .NET Standard 2.0, they're not available anyway.
This commit is contained in:
Jesse Plamondon-Willard 2022-04-12 19:19:37 -04:00
parent 0b48c1748b
commit 4e0e928c94
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
6 changed files with 3 additions and 15 deletions

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Collections.Generic;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
@ -42,8 +40,8 @@ namespace StardewModdingAPI.ModBuildConfig.Analyzer
// invalid
fromExpression = null;
fromType = default(TypeInfo);
toType = default(TypeInfo);
fromType = default;
toType = default;
return false;
}
@ -76,7 +74,7 @@ namespace StardewModdingAPI.ModBuildConfig.Analyzer
// invalid
declaringType = null;
memberType = default(TypeInfo);
memberType = default;
memberName = null;
return false;
}

View File

@ -1,5 +1,3 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;

View File

@ -1,5 +1,3 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;

View File

@ -1,5 +1,3 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.IO;

View File

@ -1,5 +1,3 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.IO;

View File

@ -1,5 +1,3 @@
#nullable disable
using System;
namespace StardewModdingAPI.ModBuildConfig.Framework