Browse Source

fix misc golint and gofmt issues

Will Norris 11 years ago
parent
commit
a24537c016
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      github/gists.go
  2. +2
    -2
      github/licenses.go
  3. +1
    -1
      github/licenses_test.go
  4. +1
    -1
      github/repos_releases.go

+ 1
- 1
github/gists.go View File

@ -157,7 +157,7 @@ func (s *GistsService) Get(id string) (*Gist, *Response, error) {
return gist, resp, err
}
// Get a specific revision of a gist.
// GetRevision gets a specific revision of a gist.
//
// GitHub API docs: https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist
func (s *GistsService) GetRevision(id, sha string) (*Gist, *Response, error) {


+ 2
- 2
github/licenses.go View File

@ -21,7 +21,7 @@ type License struct {
Name *string `json:"name,omitempty"`
URL *string `json:"url,omitempty"`
HTMLURL *string `json:"html_url",omitempty`
HTMLURL *string `json:"html_url,omitempty"`
Featured *bool `json:"featured,omitempty"`
Description *string `json:"description,omitempty"`
Category *string `json:"category,omitempty"`
@ -57,7 +57,7 @@ func (s *LicensesService) List() ([]License, *Response, error) {
return *licenses, resp, err
}
// Fetch extended metadata for one license.
// Get extended metadata for one license.
//
// GitHub API docs: https://developer.github.com/v3/licenses/#get-an-individual-license
func (s *LicensesService) Get(licenseName string) (*License, *Response, error) {


+ 1
- 1
github/licenses_test.go View File

@ -27,7 +27,7 @@ func TestLicensesService_List(t *testing.T) {
t.Errorf("Licenses.List returned error: %v", err)
}
want := []License{License{
want := []License{{
Key: String("mit"),
Name: String("MIT"),
URL: String("https://api.github.com/licenses/mit"),


+ 1
- 1
github/repos_releases.go View File

@ -96,7 +96,7 @@ func (s *RepositoriesService) GetLatestRelease(owner, repo string) (*RepositoryR
return s.getSingleRelease(u)
}
// GetLatestReleaseByTag fetches a release with the specified tag.
// GetReleaseByTag fetches a release with the specified tag.
//
// GitHub API docs: https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name
func (s *RepositoriesService) GetReleaseByTag(owner, repo, tag string) (*RepositoryRelease, *Response, error) {


Loading…
Cancel
Save