Added readonly to fields that are never modified (#2759)

Co-authored-by: Lehonti Ramos <john@doe>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
This commit is contained in:
Lehonti Ramos
2023-08-11 18:53:51 +02:00
committed by GitHub
parent 6ab43b2d41
commit d46527d143
29 changed files with 166 additions and 166 deletions

View File

@@ -12,8 +12,8 @@ namespace Octokit.Tests.Integration.Reactive
{
public class TheCreateMethod
{
IObservableGitHubClient _github;
IObservableGitHubClient _githubAppInstallation;
readonly IObservableGitHubClient _github;
readonly IObservableGitHubClient _githubAppInstallation;
public TheCreateMethod()
{
@@ -70,8 +70,8 @@ namespace Octokit.Tests.Integration.Reactive
public class TheUpdateMethod
{
IObservableGitHubClient _github;
IObservableGitHubClient _githubAppInstallation;
readonly IObservableGitHubClient _github;
readonly IObservableGitHubClient _githubAppInstallation;
public TheUpdateMethod()
{
@@ -148,8 +148,8 @@ namespace Octokit.Tests.Integration.Reactive
public class TheGetAllForReferenceMethod
{
IObservableGitHubClient _github;
IObservableGitHubClient _githubAppInstallation;
readonly IObservableGitHubClient _github;
readonly IObservableGitHubClient _githubAppInstallation;
public TheGetAllForReferenceMethod()
{
@@ -232,8 +232,8 @@ namespace Octokit.Tests.Integration.Reactive
public class TheGetAllForCheckSuiteMethod
{
IObservableGitHubClient _github;
IObservableGitHubClient _githubAppInstallation;
readonly IObservableGitHubClient _github;
readonly IObservableGitHubClient _githubAppInstallation;
public TheGetAllForCheckSuiteMethod()
{
@@ -316,8 +316,8 @@ namespace Octokit.Tests.Integration.Reactive
public class TheGetMethod
{
IObservableGitHubClient _github;
IObservableGitHubClient _githubAppInstallation;
readonly IObservableGitHubClient _github;
readonly IObservableGitHubClient _githubAppInstallation;
public TheGetMethod()
{
@@ -384,8 +384,8 @@ namespace Octokit.Tests.Integration.Reactive
public class TheGetAllAnnotationsMethod
{
IObservableGitHubClient _github;
IObservableGitHubClient _githubAppInstallation;
readonly IObservableGitHubClient _github;
readonly IObservableGitHubClient _githubAppInstallation;
public TheGetAllAnnotationsMethod()
{