mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-04-04 17:00:12 -05:00
Revert GetRepositoryResponse mistaken change of structure
This commit is contained in:
parent
f1225dcec2
commit
8ff9de0001
@ -431,7 +431,7 @@ func GetRepositoriesResponse(r *APIResponse) ([]Repository, error) {
|
||||
// GetRepositoryResponse cast Repositories into structure
|
||||
func GetRepositoryResponse(r *APIResponse) (Repository, error) {
|
||||
var m Repository
|
||||
err := mapstructure.Decode(r.Values["values"], &m)
|
||||
err := mapstructure.Decode(r.Values, &m)
|
||||
return m, err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user