Skip to content

Commit

Permalink
Ignore LGTM false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hobbs committed Aug 27, 2021
1 parent d428399 commit 02687f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ export function extractTenantBaseUrlOption(opts, domain) {
const hostname = getLocationFromUrl(domainUrl).hostname;
const DOT_AUTH0_DOT_COM = '.auth0.com';

if (endsWith(hostname, DOT_AUTH0_DOT_COM)) {
// prettier-ignore
if (endsWith(hostname, DOT_AUTH0_DOT_COM)) { // lgtm [js/incomplete-url-substring-sanitization]
const parts = hostname.split('.');
const tenant_name = parts[0];

Expand Down

0 comments on commit 02687f6

Please sign in to comment.