Skip to content
Snippets Groups Projects
Commit d517f5ab authored by vjrj's avatar vjrj
Browse files

Find nodes correctly

parent 7618963e
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,8 @@ class NodeManager {
}
}
bool _find(List<Node> nodes, Node node) => nodes.contains(node);
bool _find(List<Node> nodes, Node node) =>
nodes.where((Node n) => n.url == node.url).isNotEmpty;
void insertNode(NodeType type, Node node) {
final List<Node> nodes = _getList(type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment