Skip to content

Commit

Permalink
fix: fix a logical error in DependencyGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Feb 23, 2024
1 parent b9cc6e7 commit be58b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ll/api/data/DependencyGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ class DependencyGraph {
return false;
}
std::unordered_set<T> dependentBy(T const& node) const {
if (contains(node)) {
if (!contains(node)) {
return {};
}
return data.at(node).dependBy;
}
std::unordered_set<T> dependentOn(T const& node) const {
if (contains(node)) {
if (!contains(node)) {
return {};
}
return data.at(node).dependOn;
Expand Down

0 comments on commit be58b9d

Please sign in to comment.