summaryrefslogtreecommitdiff
path: root/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.rs')
-rw-r--r--src/map.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map.rs b/src/map.rs
index 979abdb..994633b 100644
--- a/src/map.rs
+++ b/src/map.rs
@@ -113,8 +113,7 @@ impl Roadmap {
/// Should status be goal? In other words, does any other step
/// depend on this one?
pub fn is_goal(&self, step: &Step) -> bool {
- let has_parent = self.steps.iter().any(|other| other.depends_on(step.name()));
- !has_parent
+ self.steps.iter().all(|other| !other.depends_on(step.name()))
}
/// Get a Graphviz dot language representation of a roadmap. This