refactor: update summary in controller

This commit is contained in:
debugtalk
2022-10-18 16:07:21 +08:00
parent 792605a1dc
commit c23053ca16
12 changed files with 112 additions and 140 deletions
-3
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