Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
eladb committed Mar 21, 2024
1 parent c204a73 commit 2a732db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/wingsdk/src/fs/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export interface GlobOptions {
* @default false
*/
readonly realpath?: boolean;

/**
* Set to `true` to always receive absolute paths for matched files. Set to `false` to always
* receive relative paths for matched files.
Expand Down Expand Up @@ -627,12 +627,12 @@ export class Util {
* Calculate an MD5 content hash of all the files that match a glob pattern.
*
* @param dir The root directory.
* @param glob The glob pattern to match (defaults to all files and subdirectories).
* @param globPattern The glob pattern to match (defaults to all files and subdirectories).
* @returns An md5 hash of the file contents.
*/
public static md5(dir: string, glob: string = "**/*") {
public static md5(dir: string, globPattern: string = "**/*") {
const hash = crypto.createHash("md5");
const files = this.glob(glob, { nodir: true, cwd: dir });
const files = this.glob(globPattern, { nodir: true, cwd: dir });
for (const f of files) {
const data = fs.readFileSync(this.join(dir, f));
hash.update(data);
Expand Down

0 comments on commit 2a732db

Please sign in to comment.