Skip to content

Commit

Permalink
apply fixes for allow-parens as needed lint rule, phetsims/chipper#790
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Sep 19, 2019
1 parent 4c2b11d commit 42eba3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/createHTMLString.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ handlebars.registerHelper( 'componentLink', ( repo, component ) => {
);
} );

handlebars.registerHelper( 'simPageLink', ( simName ) => {
handlebars.registerHelper( 'simPageLink', simName => {
return new handlebars.SafeString(
`<a href="https://phet.colorado.edu/en/simulation/${simName}" target="_blank">PhET Simulation Page</a>`
);
Expand Down
4 changes: 2 additions & 2 deletions js/getFromSimInMaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getSims = function() {
const baseURL = buildLocal.localTestingURL; // localTestingURL should include the port number if present
assert( baseURL.endsWith( '/' ), 'path should end with a slash' );

module.exports = async ( commandLineSims ) => {
module.exports = async commandLineSims => {
const browser = await puppeteer.launch();

const dataByComponent = {};
Expand Down Expand Up @@ -91,7 +91,7 @@ module.exports = async ( commandLineSims ) => {

// Add a listener such that when the sim posts a message saying that it has loaded,
// get the InstanceRegistry's mapping of components for this sim
await page.evaluate( ( sim ) => {
await page.evaluate( sim => {
return new Promise( function( resolve, reject ) {
window.addEventListener( 'message', function( event ) {
if ( event.data ) {
Expand Down
2 changes: 1 addition & 1 deletion js/serverTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const http = require( 'http' );

const url = buildLocal.localTestingURL;

http.get( url, ( res ) => {
http.get( url, res => {
assert( res.statusCode === 200, `ERROR: Bad response from ${url}` );
console.log( 'SUCCESS:', 'Server properly configured.');
} );

0 comments on commit 42eba3e

Please sign in to comment.