Skip to content

Commit

Permalink
httpclient: Remove unnecessary conversion from ExampleIssues_Count.
Browse files Browse the repository at this point in the history
This makes the code simpler.

Found with unconvert.
  • Loading branch information
dmitshur committed Dec 29, 2018
1 parent a359f16 commit b8198a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpclient/httpclient_test.go
Expand Up @@ -140,7 +140,7 @@ func ExampleIssues_List() {

func ExampleIssues_Count() {
count, err := issuesClient.Count(context.Background(), issues.RepoSpec{URI: "example.org/repo"}, issues.IssueListOptions{
State: issues.StateFilter(issues.AllStates),
State: issues.AllStates,
})
if err != nil {
log.Fatalln(err)
Expand Down

0 comments on commit b8198a4

Please sign in to comment.