refactor: update summary in controller

This commit is contained in:
debugtalk
2022-10-18 15:51:56 +08:00
parent c5f81f2593
commit 23abc56a82
12 changed files with 112 additions and 140 deletions

View File

@@ -100,9 +100,6 @@ func (s *StepAPIWithOptionalArgs) Struct() *TStep {
func (s *StepAPIWithOptionalArgs) Run(r *SessionRunner) (stepResult *StepResult, err error) {
defer func() {
if err != nil {
r.summary.Success = false
}
stepResult.StepType = stepTypeAPI
}()
// extend request with referenced API