Skip to content

Commit

Permalink
fix: remove len(res)==0 condition (#4394)
Browse files Browse the repository at this point in the history
Signed-off-by: namkyu1999 <[email protected]>
Co-authored-by: Sarthak Jain <[email protected]>
Co-authored-by: Saranya Jena <[email protected]>
  • Loading branch information
3 people authored Feb 12, 2024
1 parent d4b5796 commit 4fbd960
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ func (c *ChaosExperimentRunHandler) GetExperimentRunStats(ctx context.Context, p

var res []dbChaosExperiment.AggregatedExperimentRunStats

if err = experimentRunCursor.All(context.Background(), &res); err != nil || len(res) == 0 {
if err = experimentRunCursor.All(context.Background(), &res); err != nil {
return nil, err
}

Expand Down

0 comments on commit 4fbd960

Please sign in to comment.