Skip to content

Commit a24537c

Browse files
committed
fix misc golint and gofmt issues
1 parent 379faef commit a24537c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

github/gists.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (s *GistsService) Get(id string) (*Gist, *Response, error) {
157157
return gist, resp, err
158158
}
159159

160-
// Get a specific revision of a gist.
160+
// GetRevision gets a specific revision of a gist.
161161
//
162162
// GitHub API docs: https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist
163163
func (s *GistsService) GetRevision(id, sha string) (*Gist, *Response, error) {

github/licenses.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type License struct {
2121
Name *string `json:"name,omitempty"`
2222
URL *string `json:"url,omitempty"`
2323

24-
HTMLURL *string `json:"html_url",omitempty`
24+
HTMLURL *string `json:"html_url,omitempty"`
2525
Featured *bool `json:"featured,omitempty"`
2626
Description *string `json:"description,omitempty"`
2727
Category *string `json:"category,omitempty"`
@@ -57,7 +57,7 @@ func (s *LicensesService) List() ([]License, *Response, error) {
5757
return *licenses, resp, err
5858
}
5959

60-
// Fetch extended metadata for one license.
60+
// Get extended metadata for one license.
6161
//
6262
// GitHub API docs: https://developer.github.com/v3/licenses/#get-an-individual-license
6363
func (s *LicensesService) Get(licenseName string) (*License, *Response, error) {

github/licenses_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestLicensesService_List(t *testing.T) {
2727
t.Errorf("Licenses.List returned error: %v", err)
2828
}
2929

30-
want := []License{License{
30+
want := []License{{
3131
Key: String("mit"),
3232
Name: String("MIT"),
3333
URL: String("https://api.github.com/licenses/mit"),

github/repos_releases.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (s *RepositoriesService) GetLatestRelease(owner, repo string) (*RepositoryR
9696
return s.getSingleRelease(u)
9797
}
9898

99-
// GetLatestReleaseByTag fetches a release with the specified tag.
99+
// GetReleaseByTag fetches a release with the specified tag.
100100
//
101101
// GitHub API docs: https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name
102102
func (s *RepositoriesService) GetReleaseByTag(owner, repo, tag string) (*RepositoryRelease, *Response, error) {

0 commit comments

Comments
 (0)