Skip to content

Commit

Permalink
Update arrow functions for consistency.
Browse files Browse the repository at this point in the history
Ensure that all arrow functions include parenthesis.
  • Loading branch information
Matt Hernandez committed Oct 12, 2016
1 parent a474af2 commit 2696e2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = (options, done) => {
done(err)
})

build.on('close', code => {
build.on('close', (code) => {
if (code !== 0) return done(new Error('Conversion failed.'))
done()
})
Expand Down
4 changes: 2 additions & 2 deletions lib/find-node-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Hoek = require('hoek')

const DEFAULT_NODE_VERSION = '0.10.33'

module.exports = options => {
module.exports = (options) => {
var version, bootPath

Hoek.assert(options !== undefined, 'options is required')
Expand All @@ -23,7 +23,7 @@ module.exports = options => {
try {
// Read boot.js to find the MIN_NODE_VERSION; use that version as the node
// version of the project.
Fs.readFileSync(bootPath).toString().split('\n').some(line => {
Fs.readFileSync(bootPath).toString().split('\n').some((line) => {
if (line.indexOf('MIN_NODE_VERSION') >= 0) {
/* eslint-disable no-magic-numbers */
version = line.split(' ')[3].replace(/[v;']/g, '')
Expand Down

0 comments on commit 2696e2d

Please # to comment.