{"action":"created","comment":{"url":"https://api.github.com/repos/remind101/pkg/pulls/comments/53409372","id":53409372,"diff_hunk":"@@ -126,7 +149,8 @@ func (t *RetryTransport) RoundTrip(ctx context.Context, req *http.Request) (*htt\n \t\tif resp.StatusCode >= 500 {\n \t\t\treturn nil, &RetryableHTTPError{Path: req.URL.String(), StatusCode: resp.StatusCode}\n \t\t} else if resp.StatusCode >= 300 {","path":"httpx/http_service.go","position":82,"original_position":82,"commit_id":"8c6f25db211cad151db5ba64142b5928d519aac6","original_commit_id":"8c6f25db211cad151db5ba64142b5928d519aac6","user":{"login":"ejholmes","id":95166,"avatar_url":"https://avatars.githubusercontent.com/u/95166?v=3","gravatar_id":"","url":"https://api.github.com/users/ejholmes","html_url":"https://github.com/ejholmes","followers_url":"https://api.github.com/users/ejholmes/followers","following_url":"https://api.github.com/users/ejholmes/following{/other_user}","gists_url":"https://api.github.com/users/ejholmes/gists{/gist_id}","starred_url":"https://api.github.com/users/ejholmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejholmes/subscriptions","organizations_url":"https://api.github.com/users/ejholmes/orgs","repos_url":"https://api.github.com/users/ejholmes/repos","events_url":"https://api.github.com/users/ejholmes/events{/privacy}","received_events_url":"https://api.github.com/users/ejholmes/received_events","type":"User","site_admin":false},"body":"I think you can just remove this else clause and let it fall through to the return below.","created_at":"2016-02-19T01:03:11Z","updated_at":"2016-02-19T01:03:11Z","html_url":"https://github.com/remind101/pkg/pull/32#discussion_r53409372","pull_request_url":"https://api.github.com/repos/remind101/pkg/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/remind101/pkg/pulls/comments/53409372"},"html":{"href":"https://github.com/remind101/pkg/pull/32#discussion_r53409372"},"pull_request":{"href":"https://api.github.com/repos/remind101/pkg/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/remind101/pkg/pulls/32","id":59876952,"html_url":"https://github.com/remind101/pkg/pull/32","diff_url":"https://github.com/remind101/pkg/pull/32.diff","patch_url":"https://github.com/remind101/pkg/pull/32.patch","issue_url":"https://api.github.com/repos/remind101/pkg/issues/32","number":32,"state":"open","locked":false,"title":"Client injection and method-based retrying","user":{"login":"psocha","id":7681119,"avatar_url":"https://avatars.githubusercontent.com/u/7681119?v=3","gravatar_id":"","url":"https://api.github.com/users/psocha","html_url":"https://github.com/psocha","followers_url":"https://api.github.com/users/psocha/followers","following_url":"https://api.github.com/users/psocha/following{/other_user}","gists_url":"https://api.github.com/users/psocha/gists{/gist_id}","starred_url":"https://api.github.com/users/psocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psocha/subscriptions","organizations_url":"https://api.github.com/users/psocha/orgs","repos_url":"https://api.github.com/users/psocha/repos","events_url":"https://api.github.com/users/psocha/events{/privacy}","received_events_url":"https://api.github.com/users/psocha/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-18T22:50:56Z","updated_at":"2016-02-19T01:03:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b971daf22cb14d64afbb7448285602f9bc0dec9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/remind101/pkg/pulls/32/commits","review_comments_url":"https://api.github.com/repos/remind101/pkg/pulls/32/comments","review_comment_url":"https://api.github.com/repos/remind101/pkg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/remind101/pkg/issues/32/comments","statuses_url":"https://api.github.com/repos/remind101/pkg/statuses/8c6f25db211cad151db5ba64142b5928d519aac6","head":{"label":"remind101:httpservice-customizability","ref":"httpservice-customizability","sha":"8c6f25db211cad151db5ba64142b5928d519aac6","user":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"repo":{"id":33279320,"name":"pkg","full_name":"remind101/pkg","owner":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/remind101/pkg","description":"A layer of convenience of the Go stdlib","fork":false,"url":"https://api.github.com/repos/remind101/pkg","forks_url":"https://api.github.com/repos/remind101/pkg/forks","keys_url":"https://api.github.com/repos/remind101/pkg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remind101/pkg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remind101/pkg/teams","hooks_url":"https://api.github.com/repos/remind101/pkg/hooks","issue_events_url":"https://api.github.com/repos/remind101/pkg/issues/events{/number}","events_url":"https://api.github.com/repos/remind101/pkg/events","assignees_url":"https://api.github.com/repos/remind101/pkg/assignees{/user}","branches_url":"https://api.github.com/repos/remind101/pkg/branches{/branch}","tags_url":"https://api.github.com/repos/remind101/pkg/tags","blobs_url":"https://api.github.com/repos/remind101/pkg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remind101/pkg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remind101/pkg/git/refs{/sha}","trees_url":"https://api.github.com/repos/remind101/pkg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remind101/pkg/statuses/{sha}","languages_url":"https://api.github.com/repos/remind101/pkg/languages","stargazers_url":"https://api.github.com/repos/remind101/pkg/stargazers","contributors_url":"https://api.github.com/repos/remind101/pkg/contributors","subscribers_url":"https://api.github.com/repos/remind101/pkg/subscribers","subscription_url":"https://api.github.com/repos/remind101/pkg/subscription","commits_url":"https://api.github.com/repos/remind101/pkg/commits{/sha}","git_commits_url":"https://api.github.com/repos/remind101/pkg/git/commits{/sha}","comments_url":"https://api.github.com/repos/remind101/pkg/comments{/number}","issue_comment_url":"https://api.github.com/repos/remind101/pkg/issues/comments{/number}","contents_url":"https://api.github.com/repos/remind101/pkg/contents/{+path}","compare_url":"https://api.github.com/repos/remind101/pkg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remind101/pkg/merges","archive_url":"https://api.github.com/repos/remind101/pkg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remind101/pkg/downloads","issues_url":"https://api.github.com/repos/remind101/pkg/issues{/number}","pulls_url":"https://api.github.com/repos/remind101/pkg/pulls{/number}","milestones_url":"https://api.github.com/repos/remind101/pkg/milestones{/number}","notifications_url":"https://api.github.com/repos/remind101/pkg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remind101/pkg/labels{/name}","releases_url":"https://api.github.com/repos/remind101/pkg/releases{/id}","deployments_url":"https://api.github.com/repos/remind101/pkg/deployments","created_at":"2015-04-01T23:56:47Z","updated_at":"2016-02-06T07:57:13Z","pushed_at":"2016-02-19T00:46:58Z","git_url":"git://github.com/remind101/pkg.git","ssh_url":"git@github.com:remind101/pkg.git","clone_url":"https://github.com/remind101/pkg.git","svn_url":"https://github.com/remind101/pkg","homepage":"https://godoc.org/github.com/remind101/pkg","size":117,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":7,"default_branch":"master"}},"base":{"label":"remind101:master","ref":"master","sha":"7ba05ccc712140b2e703744af874ce690858a144","user":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"repo":{"id":33279320,"name":"pkg","full_name":"remind101/pkg","owner":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/remind101/pkg","description":"A layer of convenience of the Go stdlib","fork":false,"url":"https://api.github.com/repos/remind101/pkg","forks_url":"https://api.github.com/repos/remind101/pkg/forks","keys_url":"https://api.github.com/repos/remind101/pkg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remind101/pkg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remind101/pkg/teams","hooks_url":"https://api.github.com/repos/remind101/pkg/hooks","issue_events_url":"https://api.github.com/repos/remind101/pkg/issues/events{/number}","events_url":"https://api.github.com/repos/remind101/pkg/events","assignees_url":"https://api.github.com/repos/remind101/pkg/assignees{/user}","branches_url":"https://api.github.com/repos/remind101/pkg/branches{/branch}","tags_url":"https://api.github.com/repos/remind101/pkg/tags","blobs_url":"https://api.github.com/repos/remind101/pkg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remind101/pkg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remind101/pkg/git/refs{/sha}","trees_url":"https://api.github.com/repos/remind101/pkg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remind101/pkg/statuses/{sha}","languages_url":"https://api.github.com/repos/remind101/pkg/languages","stargazers_url":"https://api.github.com/repos/remind101/pkg/stargazers","contributors_url":"https://api.github.com/repos/remind101/pkg/contributors","subscribers_url":"https://api.github.com/repos/remind101/pkg/subscribers","subscription_url":"https://api.github.com/repos/remind101/pkg/subscription","commits_url":"https://api.github.com/repos/remind101/pkg/commits{/sha}","git_commits_url":"https://api.github.com/repos/remind101/pkg/git/commits{/sha}","comments_url":"https://api.github.com/repos/remind101/pkg/comments{/number}","issue_comment_url":"https://api.github.com/repos/remind101/pkg/issues/comments{/number}","contents_url":"https://api.github.com/repos/remind101/pkg/contents/{+path}","compare_url":"https://api.github.com/repos/remind101/pkg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remind101/pkg/merges","archive_url":"https://api.github.com/repos/remind101/pkg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remind101/pkg/downloads","issues_url":"https://api.github.com/repos/remind101/pkg/issues{/number}","pulls_url":"https://api.github.com/repos/remind101/pkg/pulls{/number}","milestones_url":"https://api.github.com/repos/remind101/pkg/milestones{/number}","notifications_url":"https://api.github.com/repos/remind101/pkg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remind101/pkg/labels{/name}","releases_url":"https://api.github.com/repos/remind101/pkg/releases{/id}","deployments_url":"https://api.github.com/repos/remind101/pkg/deployments","created_at":"2015-04-01T23:56:47Z","updated_at":"2016-02-06T07:57:13Z","pushed_at":"2016-02-19T00:46:58Z","git_url":"git://github.com/remind101/pkg.git","ssh_url":"git@github.com:remind101/pkg.git","clone_url":"https://github.com/remind101/pkg.git","svn_url":"https://github.com/remind101/pkg","homepage":"https://godoc.org/github.com/remind101/pkg","size":117,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/remind101/pkg/pulls/32"},"html":{"href":"https://github.com/remind101/pkg/pull/32"},"issue":{"href":"https://api.github.com/repos/remind101/pkg/issues/32"},"comments":{"href":"https://api.github.com/repos/remind101/pkg/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/remind101/pkg/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/remind101/pkg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/remind101/pkg/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/remind101/pkg/statuses/8c6f25db211cad151db5ba64142b5928d519aac6"}}}}