summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-04-23 23:00:51 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-04-23 23:00:51 -0400
commita9c220c0fe0fd6f52bee73a8f5da91fd1d007d0f (patch)
tree18cb834bce4eb7f6ae0aa7f9f088124fb3cfe913 /src/StardewModdingAPI.Installer
parent8ec607ba3c1d672f5aeac065dd19dc3514e209c4 (diff)
downloadSMAPI-a9c220c0fe0fd6f52bee73a8f5da91fd1d007d0f.tar.gz
SMAPI-a9c220c0fe0fd6f52bee73a8f5da91fd1d007d0f.tar.bz2
SMAPI-a9c220c0fe0fd6f52bee73a8f5da91fd1d007d0f.zip
minor cleanup
Diffstat (limited to 'src/StardewModdingAPI.Installer')
-rw-r--r--src/StardewModdingAPI.Installer/InteractiveInstaller.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs
index c456fdc0..38c19d2b 100644
--- a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs
+++ b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs
@@ -626,9 +626,8 @@ namespace StardewModdingApi.Installer
private void Move(FileSystemInfo entry, string newPath)
{
// file
- if (entry is FileInfo)
+ if (entry is FileInfo file)
{
- FileInfo file = (FileInfo)entry;
file.CopyTo(newPath);
file.Delete();
}