File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,7 @@ export async function downloadTool(
302
302
* Gets size of downloaded file from "Content-Length" header
303
303
*
304
304
* @param response response for request to get the file
305
+ * @returns number if the 'content-length' is not empty, otherwise NaN
305
306
*/
306
307
function _getContentLengthOfDownloadedFile ( response : httpm . HttpClientResponse ) : number {
307
308
let contentLengthHeader = response . message . headers [ 'content-length' ]
@@ -313,6 +314,7 @@ function _getContentLengthOfDownloadedFile(response: httpm.HttpClientResponse):
313
314
* Gets size of file saved to disk
314
315
*
315
316
* @param filePath the path to the file, saved to the disk
317
+ * @returns size of file saved to disk
316
318
*/
317
319
function _getFileSizeOnDisk ( filePath : string ) : number {
318
320
let fileStats = fs . statSync ( filePath ) ;
You can’t perform that action at this time.
0 commit comments