From 376dadd3412752cf406958ca889e326bfdd53087 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 9 Apr 2022 16:58:52 -0400 Subject: [PATCH] fix misplaced attribute (#837) --- src/SMAPI.Toolkit/Framework/UpdateData/UpdateKey.cs | 6 +++--- 1 file 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; } /// The mod ID within the repository. -#if NET5_0_OR_GREATER - [MemberNotNullWhen(true, nameof(LooksValid))] -#endif public string? ID { get; } /// If specified, a substring in download names/descriptions to match. public string? Subkey { get; } /// Whether the update key seems to be valid. +#if NET5_0_OR_GREATER + [MemberNotNullWhen(true, nameof(UpdateKey.ID))] +#endif public bool LooksValid { get; }