Skip to content

Commit

Permalink
Merge pull request #1158 from brockfanning/replace-es6-code
Browse files Browse the repository at this point in the history
Avoid ES6 syntax for now
  • Loading branch information
Marak authored Apr 7, 2021
2 parents c9764ab + 53e4c48 commit 77b0b5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/gulp-tasks/package.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// generates a new faker package based on a list of locales

let locale = 'en';
var locale = 'en';

/*
Here you could override the default directory list of all, and replace it with a list of custom locales like:
let localeList = ['en', 'en_AU', 'de', 'jp', 'ar'];
var localeList = ['en', 'en_AU', 'de', 'jp', 'ar'];
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/finance.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var Finance = function (faker) {
symbol = symbol || '';
const randValue = faker.datatype.number({ max: max, min: min, precision: Math.pow(10, -dec) });

let formattedString;
var formattedString;
if(autoFormat) {
formattedString = randValue.toLocaleString(undefined, {minimumFractionDigits: dec});
}
Expand Down

0 comments on commit 77b0b5f

Please sign in to comment.