Skip to content

Commit

Permalink
fix: create fn title with mock file list of correct length
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj authored and okonet committed Oct 8, 2019
1 parent 8ec040c commit 8c3ca58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/makeCmdTasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = async function makeCmdTasks({ commands, files, gitDir, shell })
// Create a matching command array with [file] in place of file names
let mockCommands
if (isFn) {
const mockFileList = Array(commands.length).fill('[file]')
const mockFileList = Array(files.length).fill('[file]')
const resolved = command(mockFileList)
mockCommands = Array.isArray(resolved) ? resolved : [resolved]
}
Expand Down

0 comments on commit 8c3ca58

Please sign in to comment.