fix: Usage of the `any` type

Resolves Deepsource JS-0323
pull/160/head
tycrek 2 years ago
parent f1f8468651
commit b06eceda26
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -18,7 +18,7 @@ export const removeGPS = (file: string): Promise<boolean> => {
fs.read(fd, Buffer.alloc(size), 0, size, offset) fs.read(fd, Buffer.alloc(size), 0, size, offset)
.then(({ buffer }) => Promise.resolve(buffer)), .then(({ buffer }) => Promise.resolve(buffer)),
// Write function // Write function
(val: string, offset: number, enc: any): Promise<void> => (val: string, offset: number, enc: BufferEncoding): Promise<void> =>
fs.write(fd, Buffer.alloc(val.length, val, enc), 0, val.length, offset) fs.write(fd, Buffer.alloc(val.length, val, enc), 0, val.length, offset)
.then(() => Promise.resolve()))) .then(() => Promise.resolve())))
.then(resolve) .then(resolve)

Loading…
Cancel
Save