aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/gitignore.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/go-github/github/gitignore.go')
-rw-r--r--vendor/github.com/google/go-github/github/gitignore.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/google/go-github/github/gitignore.go b/vendor/github.com/google/go-github/github/gitignore.go
index 3f1f565..396178d 100644
--- a/vendor/github.com/google/go-github/github/gitignore.go
+++ b/vendor/github.com/google/go-github/github/gitignore.go
@@ -10,7 +10,7 @@ import "fmt"
// GitignoresService provides access to the gitignore related functions in the
// GitHub API.
//
-// GitHub API docs: http://developer.github.com/v3/gitignore/
+// GitHub API docs: https://developer.github.com/v3/gitignore/
type GitignoresService service
// Gitignore represents a .gitignore file as returned by the GitHub API.
@@ -25,7 +25,7 @@ func (g Gitignore) String() string {
// List all available Gitignore templates.
//
-// http://developer.github.com/v3/gitignore/#listing-available-templates
+// https://developer.github.com/v3/gitignore/#listing-available-templates
func (s GitignoresService) List() ([]string, *Response, error) {
req, err := s.client.NewRequest("GET", "gitignore/templates", nil)
if err != nil {
@@ -43,7 +43,7 @@ func (s GitignoresService) List() ([]string, *Response, error) {
// Get a Gitignore by name.
//
-// http://developer.github.com/v3/gitignore/#get-a-single-template
+// https://developer.github.com/v3/gitignore/#get-a-single-template
func (s GitignoresService) Get(name string) (*Gitignore, *Response, error) {
u := fmt.Sprintf("gitignore/templates/%v", name)
req, err := s.client.NewRequest("GET", u, nil)
@@ -57,5 +57,5 @@ func (s GitignoresService) Get(name string) (*Gitignore, *Response, error) {
return nil, resp, err
}
- return gitignore, resp, err
+ return gitignore, resp, nil
}