diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-06 18:24:59 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-06 18:24:59 -0400 |
commit | b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70 (patch) | |
tree | 4614e6eeb590843c7769f3b1857b71bdfa759071 /src/SMAPI/Framework/ModHelpers | |
parent | a593eda30f82af474887d91458b0e9158f66fefc (diff) | |
download | SMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.tar.gz SMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.tar.bz2 SMAPI-b6c8cfc28b2c94e6dc3cb07d3058371dd6775e70.zip |
simplify 'is not' patterns
Diffstat (limited to 'src/SMAPI/Framework/ModHelpers')
-rw-r--r-- | src/SMAPI/Framework/ModHelpers/ContentHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs index ae914c46..14aa74c2 100644 --- a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs +++ b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs @@ -124,7 +124,7 @@ namespace StardewModdingAPI.Framework.ModHelpers throw new SContentLoadException($"{this.ModName} failed loading content asset '{key}' from {source}: unknown content source '{source}'."); } } - catch (Exception ex) when (!(ex is SContentLoadException)) + catch (Exception ex) when (ex is not SContentLoadException) { throw new SContentLoadException($"{this.ModName} failed loading content asset '{key}' from {source}.", ex); } |