Permalink
Browse files

httpclient: Remove unnecessary conversion from ExampleIssues_Count.

This makes the code simpler.

Found with unconvert.
  • Loading branch information...
dmitshur committed Dec 29, 2018
1 parent a359f16 commit b8198a402c581382e6abf4459148a0df1fbe326f
Showing with 1 addition and 1 deletion.
  1. +1 −1 httpclient/httpclient_test.go
@@ -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)

0 comments on commit b8198a4

Please sign in to comment.