Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5ad05be

Browse files
committedJul 6, 2023
Update TypeScript code formatting for Prettier 3.x compliance
This project uses the default Prettier code style for TypeScript code. The default value for the `trailingComma` configuration setting has been changed from `es5` to `all` in the Prettier 3.0.0 release. This caused the code to no longer be compliant with the new default Prettier code formatting style. The formatting is hereby updated to the new Prettier style.
1 parent 4c1a3d1 commit 5ad05be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/installer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function fetchVersions(repoToken: string): Promise<string[]> {
4242
const tags: ITaskRef[] =
4343
(
4444
await rest.get<ITaskRef[]>(
45-
"https://api.github.com/repos/go-task/task/git/refs/tags"
45+
"https://api.github.com/repos/go-task/task/git/refs/tags",
4646
)
4747
).result || [];
4848

@@ -92,7 +92,7 @@ function normalizeVersion(version: string): string {
9292
// Compute an actual version starting from the `version` configuration param.
9393
async function computeVersion(
9494
version: string,
95-
repoToken: string
95+
repoToken: string,
9696
): Promise<string> {
9797
// return if passed version is a valid semver
9898
if (semver.valid(version)) {
@@ -113,7 +113,7 @@ async function computeVersion(
113113

114114
const allVersions = await fetchVersions(repoToken);
115115
const possibleVersions = allVersions.filter((v) =>
116-
v.startsWith(versionPrefix)
116+
v.startsWith(versionPrefix),
117117
);
118118

119119
const versionMap = new Map();
@@ -155,7 +155,7 @@ async function downloadRelease(version: string): Promise<string> {
155155
const downloadUrl: string = util.format(
156156
"https://github.com/go-task/task/releases/download/%s/%s",
157157
version,
158-
fileName
158+
fileName,
159159
);
160160
let downloadPath: string | null = null;
161161
try {

0 commit comments

Comments
 (0)
Please sign in to comment.