Skip to content

Commit

Permalink
Fix CodeQL and rebase errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilan committed Jun 29, 2024
1 parent 3786bc6 commit 80b4aac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mock/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ log.heading = 'node-pre-gyp'; // differentiate node-pre-gyp's logs from npm's
function http_mock() {
log.warn('mocking http requests to s3');

const baseHostname = 's3.us-east-1.amazonaws.com';
const basePath = `${os.tmpdir()}/mock`;

nock(new RegExp('^\.*' + baseHostname))
nock(new RegExp('([a-z0-9]+[.])*s3[.]us-east-1[.]amazonaws[.]com'))
.persist()
.get(() => true) //a function that always returns true is a catch all for nock
.reply(
Expand Down

0 comments on commit 80b4aac

Please sign in to comment.