Skip to content

Commit 1be434e

Browse files
committed
fix: remove nullable annotation to avoid CS8632 warning
UpdateCheckResult is a class — already nullable without the ? suffix. The ? annotation requires #nullable enable which this project doesn't use, causing CS8632 warnings across Unity versions.
1 parent ca28802 commit 1be434e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

MCPForUnity/Editor/Services/IPackageUpdateService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public interface IPackageUpdateService
1616
/// Returns a cached update result if one exists for today, or null if a network fetch is needed.
1717
/// Main-thread only (reads EditorPrefs).
1818
/// </summary>
19-
UpdateCheckResult? TryGetCachedResult(string currentVersion);
19+
UpdateCheckResult TryGetCachedResult(string currentVersion);
2020

2121
/// <summary>
2222
/// Performs only the network fetch and version comparison (no EditorPrefs access).

MCPForUnity/Editor/Services/PackageUpdateService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public UpdateCheckResult CheckForUpdate(string currentVersion)
8383
}
8484

8585
/// <inheritdoc/>
86-
public UpdateCheckResult? TryGetCachedResult(string currentVersion)
86+
public UpdateCheckResult TryGetCachedResult(string currentVersion)
8787
{
8888
bool isGitInstallation = IsGitInstallation();
8989
string gitBranch = isGitInstallation ? GetGitUpdateBranch(currentVersion) : "main";

0 commit comments

Comments
 (0)