Skip to content

Commit df17a9a

Browse files
committed
use string.Equals
1 parent 945f692 commit df17a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tooling/docs-builder/Tracking/LocalGitRepositoryTracker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public IReadOnlyCollection<GitChange> GetChangedFiles()
1919
var localChanges = CaptureMultiple("git", "status", "--porcelain");
2020
var gitStashDocsFolder = Capture("git", "stash", "push", "--", $"./{LookupPath}");
2121
var localUnstagedChanges = Array.Empty<string>();
22-
if (gitStashDocsFolder != "No local changes to save")
22+
if (!string.Equals(gitStashDocsFolder, "No local changes to save", StringComparison.Ordinal))
2323
{
2424
localUnstagedChanges = CaptureMultiple("git", "stash", "show", "--name-status", "-u");
2525
ExecInSilent([], "git", "stash", "pop");

0 commit comments

Comments
 (0)