Skip to content

Commit

Permalink
fix: remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Aug 26, 2019
1 parent 47353dd commit d0a80fa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ class DXScannerCommand extends Command {
const scanPath = args.path || process.cwd();
cli.action.start(`Scanning URI: ${scanPath}`);

const params: ArgumentsProvider = { uri: scanPath };
if (authorization) {
params['auth'] = authorization;
}

const container = createRootContainer(params);
const container = createRootContainer({ uri: scanPath, auth: authorization });
const scanner = container.get(Scanner);

await scanner.scan();
Expand Down

0 comments on commit d0a80fa

Please sign in to comment.