Skip to content

Commit

Permalink
Chore: Fix linting issue in utils-tests-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
antross committed Mar 22, 2019
1 parent a153b6c commit e67e695
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/utils-tests-helpers/src/hint-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ const requestSource = async (url: string, connector: string): Promise<string> =>
try {
if (connector === 'local') {
return await readFileAsync(asPathString(getAsUri(url)!));
} else {
/*
* Allow us to use our self-signed cert for testing.
* https://github.com/request/request/issues/418#issuecomment-23058601
*/
return await requestAsync({
rejectUnauthorized: false,
strictSSL: false,
url
});
}

/*
* Allow us to use our self-signed cert for testing.
* https://github.com/request/request/issues/418#issuecomment-23058601
*/
return await requestAsync({
rejectUnauthorized: false,
strictSSL: false,
url
});
} catch (e) {
// Some tests deliberately use invalid URLs (e.g. `test:`).
return '';
Expand Down

0 comments on commit e67e695

Please sign in to comment.