Skip to content

Commit

Permalink
Fix typing issue for fsStat returning unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jun 26, 2021
1 parent b307d9f commit c6cee8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sdk/storage/storage-file-datalake/src/utils/utils.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import * as fs from "fs";
import * as util from "util";
import { isNode } from "@azure/core-http";

/**
* Reads a readable stream into buffer. Fill the buffer from offset to end.
Expand Down Expand Up @@ -110,6 +109,6 @@ export async function streamToBuffer2(
*
* Promisified version of fs.stat().
*/
export const fsStat = util.promisify(isNode ? fs.stat : function stat() {});
export const fsStat = util.promisify(fs.stat);

export const fsCreateReadStream = fs.createReadStream;

0 comments on commit c6cee8b

Please sign in to comment.