Skip to content

Commit f185a82

Browse files
bump prettier to 2.8.4
1 parent 385ab7b commit f185a82

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

package-lock.json

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"markdown-link-check": "^3.10.2",
4848
"markdownlint-cli": "^0.32.2",
4949
"nock": "^10.0.6",
50-
"prettier": "^1.17.1",
50+
"prettier": "^2.8.4",
5151
"ts-jest": "^27.0.5",
5252
"typescript": "^4.9.5"
5353
}

src/installer.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ async function fetchVersions(
195195

196196
let tags: IProtocRelease[] = [];
197197
for (let pageNum = 1, morePages = true; morePages; pageNum++) {
198-
let p = await rest.get<IProtocRelease[]>(
199-
"https://api.github.com/repos/protocolbuffers/protobuf/releases?page=" +
200-
pageNum
201-
);
202-
let nextPage: IProtocRelease[] = p.result || [];
198+
let nextPage: IProtocRelease[] =
199+
(await rest.get<IProtocRelease[]>(
200+
"https://api.github.com/repos/protocolbuffers/protobuf/releases?page=" +
201+
pageNum
202+
)).result || [];
203203
if (nextPage.length > 0) {
204204
tags = tags.concat(nextPage);
205205
} else {

0 commit comments

Comments
 (0)