{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/2769","labels_url":"https://api.github.com/repos/nodejs/node/issues/2769/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/2769/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/2769/events","html_url":"https://github.com/nodejs/node/pull/2769","id":105593976,"number":2769,"title":"http: DRY ClientRequest.prototype._deferToConnect","user":{"login":"ahoym","id":5249615,"avatar_url":"https://avatars.githubusercontent.com/u/5249615?v=3","gravatar_id":"","url":"https://api.github.com/users/ahoym","html_url":"https://github.com/ahoym","followers_url":"https://api.github.com/users/ahoym/followers","following_url":"https://api.github.com/users/ahoym/following{/other_user}","gists_url":"https://api.github.com/users/ahoym/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoym/subscriptions","organizations_url":"https://api.github.com/users/ahoym/orgs","repos_url":"https://api.github.com/users/ahoym/repos","events_url":"https://api.github.com/users/ahoym/events{/privacy}","received_events_url":"https://api.github.com/users/ahoym/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/http","name":"http","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-09T13:14:34Z","updated_at":"2015-09-21T21:31:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/2769","html_url":"https://github.com/nodejs/node/pull/2769","diff_url":"https://github.com/nodejs/node/pull/2769.diff","patch_url":"https://github.com/nodejs/node/pull/2769.patch"},"body":"Came across some repetitive lines when reviewing code.\r\n\r\nLogic for calling the passed in socket `method` and/or `cb` was duplicated. Extracted these calls into a separate function, `callSocketMethod`, and invoked this new function in place of the replaced code."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/142114468","html_url":"https://github.com/nodejs/node/pull/2769#issuecomment-142114468","issue_url":"https://api.github.com/repos/nodejs/node/issues/2769","id":142114468,"user":{"login":"ahoym","id":5249615,"avatar_url":"https://avatars.githubusercontent.com/u/5249615?v=3","gravatar_id":"","url":"https://api.github.com/users/ahoym","html_url":"https://github.com/ahoym","followers_url":"https://api.github.com/users/ahoym/followers","following_url":"https://api.github.com/users/ahoym/following{/other_user}","gists_url":"https://api.github.com/users/ahoym/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoym/subscriptions","organizations_url":"https://api.github.com/users/ahoym/orgs","repos_url":"https://api.github.com/users/ahoym/repos","events_url":"https://api.github.com/users/ahoym/events{/privacy}","received_events_url":"https://api.github.com/users/ahoym/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T21:31:53Z","updated_at":"2015-09-21T21:31:53Z","body":"Bump"}}