Skip to content

Commit d9efc95

Browse files
author
Tatyana Kostromskaya (Akvelon)
committed
Resolve comment
1 parent 18710c1 commit d9efc95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ export async function downloadTool(
302302
* Gets size of downloaded file from "Content-Length" header
303303
*
304304
* @param response response for request to get the file
305+
* @returns number if the 'content-length' is not empty, otherwise NaN
305306
*/
306307
function _getContentLengthOfDownloadedFile(response: httpm.HttpClientResponse): number {
307308
let contentLengthHeader = response.message.headers['content-length']
@@ -313,6 +314,7 @@ function _getContentLengthOfDownloadedFile(response: httpm.HttpClientResponse):
313314
* Gets size of file saved to disk
314315
*
315316
* @param filePath the path to the file, saved to the disk
317+
* @returns size of file saved to disk
316318
*/
317319
function _getFileSizeOnDisk(filePath: string): number {
318320
let fileStats = fs.statSync(filePath);

0 commit comments

Comments
 (0)