Skip to content

Commit

Permalink
fix: lgtm alert suppression for js/incomplete-url-substring-sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennetremel committed Jul 1, 2020
1 parent a5d4ad6 commit ae19aa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/http/index.ts
Expand Up @@ -65,9 +65,9 @@ function isAmazon(opts: any): boolean {
// isAzureBlob return true if request options contains Azure container registry related data
function isAzureBlob(opts: any): boolean {
return (
opts.hostname?.endsWith('blob.core.windows.net') && // lgtm [js/incomplete-url-substring-sanitization]
opts.hostname?.endsWith('blob.core.windows.net') &&
opts.href?.includes('/docker/registry')
);
); // lgtm [js/incomplete-url-substring-sanitization]
}

// removeAuthorizationHeaders from the redirect options
Expand Down

0 comments on commit ae19aa0

Please sign in to comment.