Skip to content

Commit

Permalink
repositories without tools is valid such as suites
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Nov 24, 2020
1 parent 68a7ef9 commit 90e48c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repositories/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (r *Repository) Tools(ctx context.Context) ([]*tools.Tool, error) {
}
return toolModels, nil
} else {
return nil, fmt.Errorf("unexpected response body returned from API: %v", changeset)
return make([]*tools.Tool, 0, 0), nil
}
}
return nil, fmt.Errorf("empty response when requesting repostory metadata or changeset revision not found")
Expand Down

0 comments on commit 90e48c0

Please sign in to comment.