aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/repos_forks.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-02-19 01:49:51 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-02-19 01:49:51 +0000
commiteb57eaf30965ba24ff669d6f9c8d11cd24951777 (patch)
treed04d1e425f0fce5c0f696b8cab7e660630cbd362 /vendor/github.com/google/go-github/github/repos_forks.go
parente8ff7ffe8e8c25195c64950b61c6c5754bbcd3ba (diff)
update dependencies
Diffstat (limited to 'vendor/github.com/google/go-github/github/repos_forks.go')
-rw-r--r--vendor/github.com/google/go-github/github/repos_forks.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/google/go-github/github/repos_forks.go b/vendor/github.com/google/go-github/github/repos_forks.go
index 986559d..fe98a6c 100644
--- a/vendor/github.com/google/go-github/github/repos_forks.go
+++ b/vendor/github.com/google/go-github/github/repos_forks.go
@@ -10,8 +10,8 @@ import "fmt"
// RepositoryListForksOptions specifies the optional parameters to the
// RepositoriesService.ListForks method.
type RepositoryListForksOptions struct {
- // How to sort the forks list. Possible values are: newest, oldest,
- // watchers. Default is "newest".
+ // How to sort the forks list. Possible values are: newest, oldest,
+ // watchers. Default is "newest".
Sort string `url:"sort,omitempty"`
ListOptions
@@ -19,7 +19,7 @@ type RepositoryListForksOptions struct {
// ListForks lists the forks of the specified repository.
//
-// GitHub API docs: http://developer.github.com/v3/repos/forks/#list-forks
+// GitHub API docs: https://developer.github.com/v3/repos/forks/#list-forks
func (s *RepositoriesService) ListForks(owner, repo string, opt *RepositoryListForksOptions) ([]*Repository, *Response, error) {
u := fmt.Sprintf("repos/%v/%v/forks", owner, repo)
u, err := addOptions(u, opt)
@@ -75,5 +75,5 @@ func (s *RepositoriesService) CreateFork(owner, repo string, opt *RepositoryCrea
return nil, resp, err
}
- return fork, resp, err
+ return fork, resp, nil
}