Skip to content

Commit 88587ad

Browse files
committed
Update varaible name
1 parent 3af627b commit 88587ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/generate/generate.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ class Generator {
1111
private addWatchFile: (path: URL | string) => void,
1212
) {}
1313

14-
// Fetch file from main lychee repository at the currently pinned tag
14+
// Fetch file contents from main lychee repository at the currently pinned tag
1515
private async fetchFromRepository(filePath: string) {
1616
this.logger.info(`Fetching ${filePath} from git tag ${LYCHEE_VERSION}`);
1717
const url = `https://raw.githubusercontent.com/lycheeverse/lychee/refs/tags/${LYCHEE_VERSION}/${filePath}`;
1818

19-
const readme = await fetch(url);
20-
assert(readme.ok, `${readme.status} when fetching ${url}`);
21-
return readme.text();
19+
const response = await fetch(url);
20+
assert(response.ok, `Encountered ${response.status} when fetching ${url}`);
21+
return response.text();
2222
}
2323

2424
private generateOutputPath(path: string) {

0 commit comments

Comments
 (0)