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

Commit d7ac4a5

Browse files
committed
Normalize owner to lower case
1 parent b8f21cc commit d7ac4a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitHub.InlineReviews/Services/PullRequestSessionManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
using ReactiveUI;
2020
using Serilog;
2121

22+
#pragma warning disable CA1308 // Normalize strings to uppercase
23+
2224
namespace GitHub.InlineReviews.Services
2325
{
2426
/// <summary>
@@ -236,7 +238,7 @@ async Task<PullRequestSession> GetSessionInternal(string owner, string name, int
236238

237239
PullRequestSession session = null;
238240
WeakReference<PullRequestSession> weakSession;
239-
var key = Tuple.Create(owner.ToUpperInvariant(), number);
241+
var key = Tuple.Create(owner.ToLowerInvariant(), number);
240242

241243
if (sessions.TryGetValue(key, out weakSession))
242244
{

0 commit comments

Comments
 (0)