Skip to content

Commit 4ec0722

Browse files
authored
Merge pull request #974 from Scriptwonder/fix/cs8632-nullable-warning
fix: remove nullable annotation causing CS8632 warning
2 parents ca28802 + 9f9aa32 commit 4ec0722

3 files changed

Lines changed: 3 additions & 4 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";

MCPForUnity/Editor/Tools/ManageScene.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,8 +1713,7 @@ private static object ValidateScene(bool autoRepair)
17131713
}
17141714

17151715
var prefabStatus = PrefabUtility.GetPrefabInstanceStatus(go);
1716-
if (prefabStatus == PrefabInstanceStatus.MissingAsset ||
1717-
prefabStatus == PrefabInstanceStatus.Disconnected)
1716+
if (prefabStatus == PrefabInstanceStatus.MissingAsset)
17181717
{
17191718
brokenPrefabs++;
17201719
if (issues.Count < maxIssues)

0 commit comments

Comments
 (0)