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

Commit 55b731b

Browse files
committed
Fix a couple of CA errors.
1 parent c541300 commit 55b731b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.App/Services/PullRequestService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async Task DoFetchAndCheckout(ILocalRepositoryModel repository, int pullRequestN
149149

150150
IEnumerable<string> GetLocalBranchesInternal(IRepository repository, int number)
151151
{
152-
var pr = number.ToString();
152+
var pr = number.ToString(CultureInfo.InvariantCulture);
153153
return repository.Config
154154
.Select(x => new { Branch = BranchCapture.Match(x.Key).Groups["branch"].Value, Value = x.Value })
155155
.Where(x => !string.IsNullOrWhiteSpace(x.Branch) && x.Value == pr)
@@ -199,7 +199,7 @@ static string GetSafeBranchName(string name)
199199

200200
if (after == before)
201201
{
202-
return before.ToLower(CultureInfo.InvariantCulture);
202+
return before.ToLower(CultureInfo.CurrentCulture);
203203
}
204204

205205
before = after;

0 commit comments

Comments
 (0)