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

Commit 75e1041

Browse files
committed
Fix CA errors.
1 parent 5cb95db commit 75e1041

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/GitHub.Api/ApiClientConfiguration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Generic;
23
using System.Globalization;
34
using System.Linq;
45
using System.Net;
@@ -34,7 +35,7 @@ static ApiClientConfiguration()
3435
/// <summary>
3536
/// Gets the scopes required by the application.
3637
/// </summary>
37-
public static string[] Scopes { get; } = new[] { "user", "repo", "gist", "write:public_key" };
38+
public static IReadOnlyList<string> Scopes { get; } = new[] { "user", "repo", "gist", "write:public_key" };
3839

3940
/// <summary>
4041
/// Gets a note that will be stored with the OAUTH token.

src/GitHub.App/Api/ApiClient.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,11 @@
77
using System.Reactive.Linq;
88
using System.Security.Cryptography;
99
using System.Text;
10+
using GitHub.Extensions;
11+
using GitHub.Logging;
1012
using GitHub.Primitives;
1113
using Octokit;
1214
using Octokit.Reactive;
13-
using ReactiveUI;
14-
using System.Threading.Tasks;
15-
using System.Reactive.Threading.Tasks;
16-
using Octokit.Internal;
17-
using System.Collections.Generic;
18-
using GitHub.Models;
19-
using GitHub.Extensions;
20-
using GitHub.Logging;
2115
using Serilog;
2216

2317
namespace GitHub.Api
@@ -29,8 +23,6 @@ public partial class ApiClient : IApiClient
2923
static readonly ILogger log = LogManager.ForContext<ApiClient>();
3024

3125
readonly IObservableGitHubClient gitHubClient;
32-
readonly static Lazy<string> lazyNote = new Lazy<string>(() => ProductName + " on " + GetMachineNameSafe());
33-
readonly static Lazy<string> lazyFingerprint = new Lazy<string>(GetFingerprint);
3426

3527
string ClientId { get; set; }
3628
string ClientSecret { get; set; }

0 commit comments

Comments
 (0)