Skip to content

Commit e90e13a

Browse files
committed
TS is stricter now
1 parent aeb563e commit e90e13a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class ArangoError extends ExtendableError {
7676
const err = new Error(this.message);
7777
err.name = this.name;
7878
for (const key of nativeErrorKeys) {
79-
if (err[key]) this[key] = err[key];
79+
if (err[key]) this[key] = err[key]!;
8080
}
8181
}
8282
}
@@ -95,7 +95,7 @@ export class HttpError extends ExtendableError {
9595
const err = new Error(this.message);
9696
err.name = this.name;
9797
for (const key of nativeErrorKeys) {
98-
if (err[key]) this[key] = err[key];
98+
if (err[key]) this[key] = err[key]!;
9999
}
100100
}
101101
}

0 commit comments

Comments
 (0)