Skip to content

Commit

Permalink
Autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Oct 4, 2024
1 parent a6bb438 commit 1396a28
Show file tree
Hide file tree
Showing 8 changed files with 221 additions and 205 deletions.
5 changes: 0 additions & 5 deletions bin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
*/
'use strict'

// TODO: remove.
/* eslint-disable no-process-exit, no-process-env */

// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
Expand Down Expand Up @@ -182,5 +179,3 @@ module.exports = function main (source, outDir, args) {
})
}
}

/* eslint-enable no-process-exit, no-process-env */
2 changes: 1 addition & 1 deletion lib/copy-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function copySync (source, outputDir, options) {
)
}

options = normalizeOptions(source, outputDir, options) // eslint-disable-line no-param-reassign
options = normalizeOptions(source, outputDir, options)

// Clean
let cleaned = []
Expand Down
3 changes: 0 additions & 3 deletions lib/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ const removeFile = require('./utils/remove-file')
* @returns {Promise<void>} The promise which will go fulfilled after done.
*/
module.exports = async function copy (source, outputDir, options, callback) {
/* eslint-disable no-param-reassign */
if (typeof options === 'function') {
callback = options
options = undefined
}
/* eslint-enable no-param-reassign */

assert(typeof source === 'string', "'source' should be a string.")
assert(source.trim().length >= 1, "'source' should not be empty.")
Expand All @@ -58,7 +56,6 @@ module.exports = async function copy (source, outputDir, options, callback) {
)
}

// eslint-disable-next-line no-param-reassign
options = normalizeOptions(source, outputDir, options)

// Clean
Expand Down
1 change: 0 additions & 1 deletion lib/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ module.exports = function watch (source, outputDir, options) {
assert(typeof options === 'object', "'options' should be an object.")
}

// eslint-disable-next-line no-param-reassign
options = normalizeOptions(source, outputDir, options)

const watcher = new Watcher(options)
Expand Down
Loading

0 comments on commit 1396a28

Please sign in to comment.