Skip to content

Commit

Permalink
noImplicitAny for index test file
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveen Kumar Singh committed Feb 27, 2019
1 parent 355d8d7 commit 04f3b1a
Show file tree
Hide file tree
Showing 2 changed files with 313 additions and 294 deletions.
16 changes: 2 additions & 14 deletions src/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,7 @@ export class Topic {
callback(null, true);
return;
}
let code = 0;
if (err.hasOwnProperty('code')) {
code =
(Object.getOwnPropertyDescriptor(err, 'code') as PropertyDescriptor)
.value;
}
if (code === 5) {
if (err.code === 5) {
callback(null, false);
return;
}
Expand Down Expand Up @@ -376,13 +370,7 @@ export class Topic {
callback!(null, this, apiResponse!);
return;
}
let code = 0;
if (err.hasOwnProperty('code')) {
code =
(Object.getOwnPropertyDescriptor(err, 'code') as PropertyDescriptor)
.value;
}
if (code !== 5 || !autoCreate) {
if (err.code !== 5 || !autoCreate) {
callback!(err, null, apiResponse!);
return;
}
Expand Down
Loading

0 comments on commit 04f3b1a

Please sign in to comment.