Skip to content

Commit 6e194ab

Browse files
committed
style: dotnet format --severity info
1 parent 4957b33 commit 6e194ab

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Git/Project.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Open_Rails_Code_Bot.Git
99
{
1010
public class Project
1111
{
12-
string GitPath;
12+
readonly string GitPath;
1313

1414
public Project(string gitPath)
1515
{

GitHub/Query.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Query
1414

1515
readonly string Token;
1616

17-
HttpClient Client = new HttpClient();
17+
readonly HttpClient Client = new();
1818

1919
public Query(string token)
2020
{

Program.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ static async Task AsyncMain(IConfigurationRoot config)
103103
var mergeBranchTree = git.ParseRef($"{mergeBranchCommit}^{{tree}}");
104104
git.CheckoutDetached(baseBranchCommit);
105105
var baseBranchVersion = String.Format(gitHubConfig["versionFormat"] ?? "{0}", git.Describe(gitHubConfig["versionDescribeOptions"] ?? ""));
106-
var mergeBranchParents = new List<string>();
107-
mergeBranchParents.Add(mergeBranchCommit);
108-
mergeBranchParents.Add(baseBranchCommit);
106+
var mergeBranchParents = new List<string>
107+
{
108+
mergeBranchCommit,
109+
baseBranchCommit
110+
};
109111
var autoMergePullRequestsSuccess = new List<GraphPullRequest>();
110112
var autoMergePullRequestsFailure = new List<GraphPullRequest>();
111113
foreach (var pullRequest in autoMergePullRequests)

0 commit comments

Comments
 (0)