diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-12 21:01:13 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-12 21:01:13 -0400 |
commit | 40aebb74c65e0c7300b5f4fcb066f3fd2b2a5fdd (patch) | |
tree | e2f520e28d0d1df18098c2e548542be3f7e8f88a /src/SMAPI.Installer/Framework | |
parent | 5f7a92a74592a53529890eebb1ee9fe519afd92f (diff) | |
download | SMAPI-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.cs | 4 | ||||
-rw-r--r-- | src/SMAPI.Installer/Framework/InstallerPaths.cs | 2 |
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; |