Move fields to top of class definition

This commit is contained in:
Robert 2024-01-03 10:26:57 +00:00
Родитель 9fd8c1c3e0
Коммит 426ab98623
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -8,6 +8,11 @@ import { GithubRateLimitedError, GithubApiError } from "./github-api-error";
* Communicates with the GitHub API to determine the latest compatible release and download assets.
*/
export class ReleasesApiConsumer {
private static readonly apiBase = "https://api.github.com";
private static readonly maxRedirects = 20;
private readonly defaultHeaders: { [key: string]: string } = {};
constructor(
private readonly ownerName: string,
private readonly repoName: string,
@ -152,11 +157,6 @@ export class ReleasesApiConsumer {
return response;
}
private readonly defaultHeaders: { [key: string]: string } = {};
private static readonly apiBase = "https://api.github.com";
private static readonly maxRedirects = 20;
}
function isRedirectStatusCode(statusCode: number): boolean {