Skip to content

Commit 426ab98

Browse files
Move fields to top of class definition
1 parent 9fd8c1c commit 426ab98

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

extensions/ql-vscode/src/codeql-cli/releases-api-consumer.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import { GithubRateLimitedError, GithubApiError } from "./github-api-error";
88
* Communicates with the GitHub API to determine the latest compatible release and download assets.
99
*/
1010
export class ReleasesApiConsumer {
11+
private static readonly apiBase = "https://api.github.com";
12+
private static readonly maxRedirects = 20;
13+
14+
private readonly defaultHeaders: { [key: string]: string } = {};
15+
1116
constructor(
1217
private readonly ownerName: string,
1318
private readonly repoName: string,
@@ -152,11 +157,6 @@ export class ReleasesApiConsumer {
152157

153158
return response;
154159
}
155-
156-
private readonly defaultHeaders: { [key: string]: string } = {};
157-
158-
private static readonly apiBase = "https://api.github.com";
159-
private static readonly maxRedirects = 20;
160160
}
161161

162162
function isRedirectStatusCode(statusCode: number): boolean {

0 commit comments

Comments
 (0)