summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-09 16:58:52 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-09 16:58:52 -0400
commit376dadd3412752cf406958ca889e326bfdd53087 (patch)
treea5298615658e511be07c425da5e7439513b554f8
parent85c769d2a28da67bcc939ec2e6c458a3db81e77c (diff)
downloadSMAPI-376dadd3412752cf406958ca889e326bfdd53087.tar.gz
SMAPI-376dadd3412752cf406958ca889e326bfdd53087.tar.bz2
SMAPI-376dadd3412752cf406958ca889e326bfdd53087.zip
fix misplaced attribute (#837)
-rw-r--r--src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs b/src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
index 4c9ca2ff..960caf96 100644
--- a/src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
+++ b/src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs
@@ -16,15 +16,15 @@ namespace StardewModdingAPI.Toolkit.Framework.UpdateData
public ModSiteKey Site { get; }
/// <summary>The mod ID within the repository.</summary>
-#if NET5_0_OR_GREATER
- [MemberNotNullWhen(true, nameof(LooksValid))]
-#endif
public string? ID { get; }
/// <summary>If specified, a substring in download names/descriptions to match.</summary>
public string? Subkey { get; }
/// <summary>Whether the update key seems to be valid.</summary>
+#if NET5_0_OR_GREATER
+ [MemberNotNullWhen(true, nameof(UpdateKey.ID))]
+#endif
public bool LooksValid { get; }