summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-12 21:01:13 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-12 21:01:13 -0400
commit40aebb74c65e0c7300b5f4fcb066f3fd2b2a5fdd (patch)
treee2f520e28d0d1df18098c2e548542be3f7e8f88a /src/SMAPI.Installer/Framework
parent5f7a92a74592a53529890eebb1ee9fe519afd92f (diff)
downloadSMAPI-40aebb74c65e0c7300b5f4fcb066f3fd2b2a5fdd.tar.gz
SMAPI-40aebb74c65e0c7300b5f4fcb066f3fd2b2a5fdd.tar.bz2
SMAPI-40aebb74c65e0c7300b5f4fcb066f3fd2b2a5fdd.zip
enable nullable annotations in installer (#837)
Diffstat (limited to 'src/SMAPI.Installer/Framework')
-rw-r--r--src/SMAPI.Installer/Framework/InstallerContext.cs4
-rw-r--r--src/SMAPI.Installer/Framework/InstallerPaths.cs2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/SMAPI.Installer/Framework/InstallerContext.cs b/src/SMAPI.Installer/Framework/InstallerContext.cs
index 23d5b17c..a2c63dd8 100644
--- a/src/SMAPI.Installer/Framework/InstallerContext.cs
+++ b/src/SMAPI.Installer/Framework/InstallerContext.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
using System.IO;
using StardewModdingAPI.Toolkit;
using StardewModdingAPI.Toolkit.Framework.GameScanning;
@@ -46,7 +44,7 @@ namespace StardewModdingAPI.Installer.Framework
/// <summary>Get the installer's version number.</summary>
public ISemanticVersion GetInstallerVersion()
{
- var raw = this.GetType().Assembly.GetName().Version;
+ var raw = this.GetType().Assembly.GetName().Version!;
return new SemanticVersion(raw);
}
diff --git a/src/SMAPI.Installer/Framework/InstallerPaths.cs b/src/SMAPI.Installer/Framework/InstallerPaths.cs
index fd9d1be6..0976eceb 100644
--- a/src/SMAPI.Installer/Framework/InstallerPaths.cs
+++ b/src/SMAPI.Installer/Framework/InstallerPaths.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
using System.IO;
using StardewModdingAPI.Toolkit.Framework;