Skip to content

Conversation

@PrayagS
Copy link
Contributor

@PrayagS PrayagS commented May 29, 2022

Signed-off-by: PrayagS prayagsavsani@gmail.com

Signed-off-by: PrayagS <prayagsavsani@gmail.com>
@PrayagS PrayagS force-pushed the feat-get-workflowruns-cmd branch from 0d88396 to 110cff2 Compare May 29, 2022 15:40

return workflowRunsList, nil
} else {
return WorkflowRunsListData{}, err
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block will be executed if resp.StatusCode != http.StatusOK. In that case else block will return WorkflowRunsListData{}, nil since error will always be handled on line 269. So instead we can return custom error message.

@imrajdas imrajdas merged commit b4f7fe9 into litmuschaos:master Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants