Planner explain output fix (#92)

This commit is contained in:
Ana Hobden 2022-12-05 12:10:28 -08:00 committed by GitHub
parent 444a9fd8f2
commit 32dcfe73e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ impl StatefulAction<Box<dyn Action>> {
/// A description of what this action would do during execution
pub fn describe_execute(&self) -> Vec<ActionDescription> {
match self.state {
ActionState::Uncompleted | ActionState::Skipped => {
ActionState::Completed | ActionState::Skipped => {
vec![]
},
_ => self.action.execute_description(),
@ -35,7 +35,7 @@ impl StatefulAction<Box<dyn Action>> {
/// A description of what this action would do during revert
pub fn describe_revert(&self) -> Vec<ActionDescription> {
match self.state {
ActionState::Completed | ActionState::Skipped => {
ActionState::Uncompleted | ActionState::Skipped => {
vec![]
},
_ => self.action.revert_description(),