Skip to content

Commit

Permalink
Resolves HashUtil Type Issue
Browse files Browse the repository at this point in the history
The `generateCRC32ForFile` method now only accepts a `string` typed file path.
  • Loading branch information
refringe committed Jan 9, 2025
1 parent dc5a11c commit 85be13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/src/utils/HashUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class HashUtil {
return this.generateHashForData("sha1", data);
}

public generateCRC32ForFile(filePath: fs.PathLike): number {
public generateCRC32ForFile(filePath: string): number {
return crc32.unsigned(this.fileSystemSync.read(filePath));
}

Expand Down

0 comments on commit 85be13c

Please sign in to comment.