We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe21ea commit 659d22eCopy full SHA for 659d22e
Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/Git.cs
@@ -140,7 +140,7 @@ public static void DiscardChanges(string path)
140
CreateNoWindow = true
141
});
142
143
- if (process.StandardError.ReadLine().StartsWith("error: pathspec"))
+ if (process?.StandardError.ReadLine() is string line && line.StartsWith("error: pathspec"))
144
{
145
146
Debug.LogError("File not tracked by git.");
0 commit comments