Skip to content

Commit

Permalink
Const instead of let.
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorg committed Jun 18, 2016
1 parent 917e1bf commit dc77b15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import prompt from 'prompt'
// Sync file function.
export function syncFile(program) {
// Read params.
let passwordFile = program.args[0];
let realm = program.args[1];
let username = program.args[2];
const passwordFile = program.args[0];
const realm = program.args[1];
const username = program.args[2];

// Encode file data.
let writeData = utils.encode(program);
const writeData = utils.encode(program);

// Collectors.
let found = false;
Expand All @@ -32,7 +32,7 @@ export function syncFile(program) {
}

// Read lines.
let lines = fs.readFileSync(passwordFile, 'UTF-8').split("\n");
const lines = fs.readFileSync(passwordFile, 'UTF-8').split("\n");

// Loop lines.
lines.forEach(line => {
Expand Down

0 comments on commit dc77b15

Please sign in to comment.