Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 52d31c7

Browse files
author
Steven Kirk
committed
Fix CA error.
1 parent 216f31b commit 52d31c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitHub.Api/LoginManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ public static bool ScopesMatch(IReadOnlyList<string> required, IReadOnlyList<str
206206
{
207207
var found = received.Contains(scope);
208208

209-
if (!found && (scope.StartsWith("read:") || scope.StartsWith("write:")))
209+
if (!found &&
210+
(scope.StartsWith("read:", StringComparison.Ordinal) ||
211+
scope.StartsWith("write:", StringComparison.Ordinal)))
210212
{
211213
// NOTE: Scopes are actually more complex than this, for example
212214
// `user` encompasses `read:user` and `user:email` but just use

0 commit comments

Comments
 (0)