summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-06 18:24:59 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-06 18:24:59 -0400
commitb6c8cfc28b2c94e6dc3cb07d3058371dd6775e70 (patch)
tree4614e6eeb590843c7769f3b1857b71bdfa759071 /src/SMAPI.Installer
parenta593eda30f82af474887d91458b0e9158f66fefc (diff)
downloadSMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.tar.gz
SMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.tar.bz2
SMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.zip
simplify 'is not' patterns
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs
index a126c3b8..49ca80a5 100644
--- a/src/SMAPI.Installer/InteractiveInstaller.cs
+++ b/src/SMAPI.Installer/InteractiveInstaller.cs
@@ -808,7 +808,7 @@ namespace StardewModdingApi.Installer
{
// get type
bool isDir = entry is DirectoryInfo;
- if (!isDir && !(entry is FileInfo))
+ if (!isDir && entry is not FileInfo)
continue; // should never happen
// delete packaged mods (newer version bundled into SMAPI)