Docs: fix broken link to Got stream documentation (#3323)

This commit is contained in:
Kid 2022-08-07 21:25:36 +08:00 committed by GitHub
parent 9a0d9eed74
commit e547eaa180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ promises.push(
.toFile("optimized-500.webp") .toFile("optimized-500.webp")
); );
// https://github.com/sindresorhus/got#gotstreamurl-options // https://github.com/sindresorhus/got/blob/main/documentation/3-streams.md
got.stream("https://www.example.com/some-file.jpg").pipe(sharpStream); got.stream("https://www.example.com/some-file.jpg").pipe(sharpStream);
Promise.all(promises) Promise.all(promises)

View File

@ -382,7 +382,7 @@ Object.setPrototypeOf(Sharp, stream.Duplex);
* .toFile("optimized-500.webp") * .toFile("optimized-500.webp")
* ); * );
* *
* // https://github.com/sindresorhus/got#gotstreamurl-options * // https://github.com/sindresorhus/got/blob/main/documentation/3-streams.md
* got.stream("https://www.example.com/some-file.jpg").pipe(sharpStream); * got.stream("https://www.example.com/some-file.jpg").pipe(sharpStream);
* *
* Promise.all(promises) * Promise.all(promises)