Skip to content

Commit 2355b43

Browse files
committed
fix: correct spread order in batch.js comments to match implementation
Impact: 1 functions changed, 1 affected
1 parent ed0af06 commit 2355b43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/batch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
* - 'name' → dataFn(target, dbPath, opts)
2525
* - 'target' → dataFn(target, dbPath, opts)
2626
* - 'file' → dataFn(target, dbPath, opts)
27-
* - 'dbOnly' → dataFn(dbPath, { target, ...opts }) (target goes into opts)
27+
* - 'dbOnly' → dataFn(dbPath, { ...opts, target }) (target goes into opts)
2828
*/
2929
export const BATCH_COMMANDS = {
3030
'fn-impact': { fn: fnImpactData, sig: 'name' },
@@ -64,7 +64,7 @@ export function batchData(command, targets, customDbPath, opts = {}) {
6464
try {
6565
let data;
6666
if (entry.sig === 'dbOnly') {
67-
// complexityData(dbPath, { target, ...opts })
67+
// complexityData(dbPath, { ...opts, target })
6868
data = entry.fn(customDbPath, { ...opts, target });
6969
} else {
7070
// All other: dataFn(target, dbPath, opts)

0 commit comments

Comments
 (0)