Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lettertwo committed Sep 27, 2021
1 parent 710e743 commit 65915e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/graph/src/AdjacencyList.js
Expand Up @@ -13,6 +13,7 @@ opaque type EdgeHash = number;
/** The address of the edge in the edges map. */
opaque type EdgeAddress = number;

// eslint-disable-next-line no-unused-vars
export type SerializedAdjacencyList<TEdgeType> = {|
nodes: Uint32Array,
edges: Uint32Array,
Expand All @@ -36,8 +37,8 @@ const MIN_GROW_FACTOR = 2;
const SHRINK_FACTOR = 0.5;

export default class AdjacencyList<TEdgeType: number = 1> {
#nodes: NodeTypeMap<TEdgeType | NullEdgeType>;
#edges: EdgeTypeMap<TEdgeType | NullEdgeType>;
#nodes /*: NodeTypeMap<TEdgeType | NullEdgeType> */;
#edges /*: EdgeTypeMap<TEdgeType | NullEdgeType> */;

constructor(
opts?:
Expand Down Expand Up @@ -196,7 +197,6 @@ export default class AdjacencyList<TEdgeType: number = 1> {
});

// Copy the existing edges into the new array.
let max = fromNodeId(this.#nodes.nextId);
copy.#nodes.nextId = this.#nodes.nextId;
this.#edges.forEach(
edge =>
Expand Down

0 comments on commit 65915e5

Please sign in to comment.