Skip to content

Commit

Permalink
Use const instead of let because step is not reassigned anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Warta committed Apr 2, 2018
1 parent 431d9b8 commit 7b2d037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/passphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const leftPadd = (str, pad, length) => {
* Resets previous settings and creates a step with a random length between 1.6% to 3.2%
*/
const init = (rand = Math.random()) => {
let step = (160 + Math.floor(rand * 160)) / 100;
const step = (160 + Math.floor(rand * 160)) / 100;
return {
step,
percentage: 0,
Expand Down

0 comments on commit 7b2d037

Please sign in to comment.