Skip to content

Commit 8c3ca58

Browse files
iirojokonet
authored andcommitted
fix: create fn title with mock file list of correct length
1 parent 8ec040c commit 8c3ca58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/makeCmdTasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = async function makeCmdTasks({ commands, files, gitDir, shell })
2828
// Create a matching command array with [file] in place of file names
2929
let mockCommands
3030
if (isFn) {
31-
const mockFileList = Array(commands.length).fill('[file]')
31+
const mockFileList = Array(files.length).fill('[file]')
3232
const resolved = command(mockFileList)
3333
mockCommands = Array.isArray(resolved) ? resolved : [resolved]
3434
}

0 commit comments

Comments
 (0)