Skip to content

Commit

Permalink
Remove unused type check
Browse files Browse the repository at this point in the history
  • Loading branch information
fgervasi committed Dec 20, 2022
1 parent a22069a commit 9bf2ff5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions plugins/screenshot/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,6 @@ async function getScreenshotResponse(server, h, params, item) {

const renderingInfo = JSON.parse(response.payload);

if (typeof renderingInfo === "object") {
throw new Boom.Boom(
`Failed to get valid renderingInfo content in headless chrome for screenshot for ${item.tool} and ${params.target} with the error: ${response.statusMessage}`,
{
statusCode: response.statusCode,
renderingInfo: renderingInfo,
}
);
}

let scripts = await server.methods.plugins.q.screenshot.getScripts(
renderingInfo
);
Expand Down

0 comments on commit 9bf2ff5

Please sign in to comment.