Skip to content

Commit

Permalink
Merge d8521df into e8503a0
Browse files Browse the repository at this point in the history
  • Loading branch information
okaybase authored Aug 11, 2021
2 parents e8503a0 + d8521df commit 09ea60a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/internal/handler/data_loader/route_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ var (
func (h *Handler) ExportAllRoutes(c droplet.Context) (interface{}, error) {
routelist, err := h.routeStore.List(c.Context(), store.ListInput{})

if len(routelist.Rows) < 1 {
return nil, consts.ErrRouteData
}

if err != nil {
return nil, err
}

if len(routelist.Rows) < 1 {
return nil, consts.ErrRouteData
}

routes := []*entity.Route{}

for _, route := range routelist.Rows {
Expand Down

0 comments on commit 09ea60a

Please sign in to comment.