up
This commit is contained in:
@@ -84,6 +84,9 @@ func (r *Repo) ListTree(ctx context.Context, profileID int64) ([]Station, error)
|
||||
stationByID[s.ID] = len(stations)
|
||||
stations = append(stations, s)
|
||||
}
|
||||
if err := rows.Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if len(stations) == 0 {
|
||||
return stations, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user