Skip to content

Commit

Permalink
Follow up changes
Browse files Browse the repository at this point in the history
Summary:
Rename file, actualize success message.

Reference to open issue about file naming in golang projects
golang/go#36060

Reviewed By: l50

Differential Revision: D54360635
  • Loading branch information
inesusvet authored and facebook-github-bot committed Mar 1, 2024
1 parent 9d547bf commit d9621a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
File renamed without changes.
7 changes: 5 additions & 2 deletions pkg/blocks/ttps.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ func (t *TTP) Execute(execCtx TTPExecutionContext) error {
return fmt.Errorf("TTP requirements not met: %w", err)
}

return t.RunSteps(execCtx)
err := t.RunSteps(execCtx)
if err == nil {
logging.L().Info("All TTP steps completed successfully! ✅")
}
return err
}

// RunSteps executes all of the steps in the given TTP.
Expand Down Expand Up @@ -286,7 +290,6 @@ func (t *TTP) RunSteps(execCtx TTPExecutionContext) error {
return fmt.Errorf("[*] Shutting Down now")
}

logging.L().Info("All steps completed successfully! ✅")
return nil
}

Expand Down

0 comments on commit d9621a8

Please sign in to comment.