Skip to content

Commit

Permalink
Prefix unused variables with _
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 25, 2024
1 parent b6dc89c commit e7643cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ const _traverseAndCreateSubtrees = (root, node, attr) => {
subtreeRootNode.parent = root;
});
node.unexplodedChildren = originalChildren;
node.children = node.children.filter((c, idx) => {
node.children = node.children.filter((_c, idx) => {
return !childrenToPrune.includes(idx);
});
/* it may be the case that the node now has no children (they're all subtrees!) */
Expand Down
2 changes: 1 addition & 1 deletion src/components/tree/phyloTree/renderers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export const updateColorBy = function updateColorBy() {};
* @param c1 colour of the parent (start of the branch)
* @param c2 colour of the node (end of the branch)
*/
const handleBranchHoverColor = (d: PhyloNode, c1: string, c2: string) => {
const handleBranchHoverColor = (d: PhyloNode, _c1: string, c2: string) => {
if (!d) { return; }

/* We want to emphasize the colour of the branch. How we do this depends on how the branch was rendered in the first place! */
Expand Down

0 comments on commit e7643cd

Please sign in to comment.