Revert GetRepositoryResponse mistaken change of structure

This commit is contained in:
gfleury 2020-03-20 10:53:01 -03:00
parent f1225dcec2
commit 8ff9de0001

View File

@ -431,7 +431,7 @@ func GetRepositoriesResponse(r *APIResponse) ([]Repository, error) {
// GetRepositoryResponse cast Repositories into structure // GetRepositoryResponse cast Repositories into structure
func GetRepositoryResponse(r *APIResponse) (Repository, error) { func GetRepositoryResponse(r *APIResponse) (Repository, error) {
var m Repository var m Repository
err := mapstructure.Decode(r.Values["values"], &m) err := mapstructure.Decode(r.Values, &m)
return m, err return m, err
} }