Skip to content

Commit

Permalink
Adding 10 as radix to parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
step2yeung committed Nov 8, 2019
1 parent 4ed4aba commit 1ca126b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/tests-options-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ module.exports = class TestsOptionsValidator {
* @return {boolean}
*/
validateParallel() {
const parallelValue = parseInt(this.options.parallel);
if (Number.isNan(parallelValue)) {
const parallelValue = parseInt(this.options.parallel, 10);
if (isNaN(parallelValue)) {
throw new SilentError(
`EmberExam: You must specify a Numeric value to 'parallel'. Value passed: ${this.options.parallel}`
);
Expand Down

0 comments on commit 1ca126b

Please sign in to comment.