Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Removed type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Avalos Ribas authored and Gonzalo Avalos Ribas committed Sep 25, 2023
1 parent 084de12 commit 295d390
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tenable/TenableClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const SECRET_KEY =
const TENABLE_COM = 'cloud.tenable.com';
const RETRY_MAX_ATTEMPTS = 4;

function prepareScope(def: nock.NockDefinition) {
function prepareScope(def: nock.Definition) {
def.scope = `https://${TENABLE_COM}`;
}

Expand Down
2 changes: 1 addition & 1 deletion src/tenable/TenableClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export default class TenableClient {

if (response.status >= 400) {
try {
const errorBody: ErrorBody = await response.json();
const errorBody: ErrorBody = (await response.json()) as ErrorBody;
const message = errorBody.message;
this.logger.info(
{ errMessage: message },
Expand Down

0 comments on commit 295d390

Please sign in to comment.