diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-09 14:30:40 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-09 14:30:40 -0400 |
commit | 8dc12fd01c9274b045bafb04f02ef97fd8999c5d (patch) | |
tree | ab76933c2adab32d124b20cd81639ed212f3f625 /src/SMAPI/Framework/Logging/LogManager.cs | |
parent | 3d10d08a1ac281620b60c0e5fd1d51b2da896a0d (diff) | |
download | SMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.tar.gz SMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.tar.bz2 SMAPI-8dc12fd01c9274b045bafb04f02ef97fd8999c5d.zip |
optimize string splits
Diffstat (limited to 'src/SMAPI/Framework/Logging/LogManager.cs')
-rw-r--r-- | src/SMAPI/Framework/Logging/LogManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Logging/LogManager.cs b/src/SMAPI/Framework/Logging/LogManager.cs index c0b7c0ba..d5b33289 100644 --- a/src/SMAPI/Framework/Logging/LogManager.cs +++ b/src/SMAPI/Framework/Logging/LogManager.cs @@ -223,7 +223,7 @@ namespace StardewModdingAPI.Framework.Logging // show update alert if (File.Exists(Constants.UpdateMarker)) { - string[] rawUpdateFound = File.ReadAllText(Constants.UpdateMarker).Split(new[] { '|' }, 2); + string[] rawUpdateFound = File.ReadAllText(Constants.UpdateMarker).Split('|', 2); if (SemanticVersion.TryParse(rawUpdateFound[0], out ISemanticVersion? updateFound)) { if (Constants.ApiVersion.IsPrerelease() && updateFound.IsNewerThan(Constants.ApiVersion)) |