Skip to content

Commit

Permalink
Drop unused arg
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdz committed Jan 28, 2020
1 parent 9315c1f commit cb83b92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/gatsby/src/redux/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ const ensureIndexByTypedChain = (
byKeyValue = new Map() // Map<node.value, Set<all nodes with this value for this key>>
typedKeyValueIndexes.set(typedKey, byKeyValue)

// TODO: Is it faster to loop through the maps by type instead of all nodes?
nodes.forEach(node => {
if (!nodeTypeNames.includes(node.internal.type)) {
return
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/redux/run-sift.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const _runSiftOnNodes = (
if (firstOnly) {
return handleFirst(siftFilter, nodes)
} else {
return handleMany(siftFilter, nodes, resolvedFields)
return handleMany(siftFilter, nodes)
}
}

Expand Down

0 comments on commit cb83b92

Please sign in to comment.