Skip to content

Commit 3f92922

Browse files
committed
Silly fixes! :)
1 parent c62a451 commit 3f92922

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main-support.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { globals } from './main-globals';
1717
*/
1818
export function hashFile(fileName: string, fileSize: number): string {
1919
// make the magic happen!
20-
let hash = hasher('md5').update(fileName + fileSize).digest('hex');
20+
let hash = hasher('md5').update(fileName + fileSize.toString()).digest('hex');
2121
return hash;
2222
}
2323

src/app/components/pipes/file-size.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class FileSizePipe implements PipeTransform {
77

88
/**
99
* Return size of file formatted as XXX{mb,gb}
10-
* @param size in bytes
10+
* @param sizeInBytes -- file size in bytes
1111
*/
1212
transform(sizeInBytes: number): string {
1313
if (sizeInBytes) {

0 commit comments

Comments
 (0)