Skip to content

Commit

Permalink
Fix task() name
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 16, 2019
1 parent f04ea9a commit e0c017a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { execCommand } from './exec.js'
// Create a Gulp task that fires a child process (command + arguments)
export const task = function(input, opts) {
validateInput({ input })
const optsA = parseOpts({ opts, forcedOpts })
const optsA = parseOpts({ opts })

const gulpTask = execCommand.bind(null, input, optsA)

Expand All @@ -16,6 +16,3 @@ export const task = function(input, opts) {

return gulpTask
}

// The `echo` option is not needed since the function name shows it already
const forcedOpts = { echo: false }

0 comments on commit e0c017a

Please sign in to comment.