Skip to content

Commit

Permalink
refactor: change non-reassigned identifier to const in src/program.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpl committed Sep 6, 2016
1 parent 2a66560 commit fcb2064
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/program.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ export class Program {
: Object = {}): Promise<void> {

this.shouldExitProgram = shouldExitProgram;
let argv;
let cmd;

this.yargs.exitProcess(this.shouldExitProgram);
argv = this.yargs.argv;

cmd = argv._[0];
const argv = this.yargs.argv;
const cmd = argv._[0];

if (cmd === undefined) {
throw new WebExtError('No sub-command was specified in the args');
}
Expand Down

0 comments on commit fcb2064

Please sign in to comment.