fix: TS linter was complaining

pull/160/head
tycrek 2 years ago
parent a36f944eba
commit 9a0b4078a8
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -159,7 +159,7 @@ function listAllKeys(resolve: Function, reject: Function, token?: string) {
let allKeys: string[] = [];
s3.listObjectsV2({ Bucket: s3bucket, ContinuationToken: token }).promise()
.then((data: { [key: string]: any }) => (allKeys = allKeys.concat(data.Contents), data.IsTruncated ? listAllKeys(resolve, reject, data.NextContinuationToken) : resolve(allKeys.length))) // skipcq: JS-0086, JS-0090
.catch((err) => reject(err));
.catch((err: Error) => reject(err));
}
export function bucketSize() {

Loading…
Cancel
Save