Skip to content

Commit

Permalink
Switch to Number(), see: phetsims/perennial#275
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Jun 25, 2022
1 parent 0ff7ecc commit 277dcc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ module.exports = grunt => {

assert( grunt.option( 'localCount' ), 'Please specify --localCount=NUMBER, for specifying the number of local threads running things like grunt tasks' );

const port = grunt.option( 'port' ) ? Number.parseInt( grunt.option( 'port' ), 10 ) : 45366;
const localCount = Number.parseInt( grunt.option( 'localCount' ), 10 );
const port = grunt.option( 'port' ) ? Number( grunt.option( 'port' ) ) : 45366;
const localCount = Number( grunt.option( 'localCount' ) );
const snapshot = grunt.option( 'snapshot' ) !== false;
const useRootDir = !!grunt.option( 'useRootDir' );

Expand Down Expand Up @@ -69,7 +69,7 @@ module.exports = grunt => {
// We don't finish! Don't tell grunt this...
grunt.task.current.async();

const port = grunt.option( 'port' ) ? Number.parseInt( grunt.option( 'port' ), 10 ) : 45367;
const port = grunt.option( 'port' ) ? Number( grunt.option( 'port' ) ) : 45367;

const testing = grunt.option( 'testing' );
const server = new QuickServer( {
Expand Down

0 comments on commit 277dcc3

Please sign in to comment.