Skip to content

Commit

Permalink
refactor: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdha committed Jun 2, 2024
1 parent a4c0f3e commit 8688664
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/heuristic/goal_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ impl Heuristic for GoalGraph {
let mut estimate = 0;
let mut queue: Vec<&Node> = self.goals.iter().collect();
while let Some(node) = queue.pop() {
let (fact, value) = &node.fact;
if state.has_fact(task, fact) == *value {
if state.has_fact(task, &node.fact.0) == node.fact.1 {
continue;
}
if node.children.is_empty() {
Expand Down

0 comments on commit 8688664

Please # to comment.