summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-07-06 19:24:49 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-07-06 19:24:49 -0400
commit4d9fd63d9e890a10029508c7d7e31dcc0b579db7 (patch)
treec47086a924b0a39bf5e2aaf0323f83e962ddfaa8 /src/SMAPI.Installer
parent2347644a1fa3537b198d063232ba814769ffe044 (diff)
downloadSMAPI-4d9fd63d9e890a10029508c7d7e31dcc0b579db7.tar.gz
SMAPI-4d9fd63d9e890a10029508c7d7e31dcc0b579db7.tar.bz2
SMAPI-4d9fd63d9e890a10029508c7d7e31dcc0b579db7.zip
update code annotations
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs
index 5a6aa747..fd1a6047 100644
--- a/src/SMAPI.Installer/InteractiveInstaller.cs
+++ b/src/SMAPI.Installer/InteractiveInstaller.cs
@@ -453,6 +453,7 @@ namespace StardewModdingApi.Installer
}
// find target folder
+ // ReSharper disable once ConditionalAccessQualifierIsNonNullableAccordingToAPIContract -- avoid error if the Mods folder has invalid mods, since they're not validated yet
ModFolder? targetMod = targetMods.FirstOrDefault(p => p.Manifest?.UniqueID?.Equals(sourceMod.Manifest.UniqueID, StringComparison.OrdinalIgnoreCase) == true);
DirectoryInfo defaultTargetFolder = new(Path.Combine(paths.ModsPath, sourceMod.Directory.Name));
DirectoryInfo targetFolder = targetMod?.Directory ?? defaultTargetFolder;