Skip to content

Commit

Permalink
else if instead of if
Browse files Browse the repository at this point in the history
  • Loading branch information
iamayushm committed Sep 19, 2024
1 parent ba805bf commit c34892a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/appStore/InstalledAppRestHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ func (handler *InstalledAppRestHandlerImpl) FetchAppOverview(w http.ResponseWrit
if err != nil && err != pg.ErrNoRows {
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)
return
}
if err == pg.ErrNoRows || installedApp == nil {
} else if err == pg.ErrNoRows || installedApp == nil {
common.WriteJsonResp(w, errors.New("helm app doses not exist"), nil, http.StatusNotFound)
return
}
Expand Down

0 comments on commit c34892a

Please sign in to comment.