{"action":"created","issue":{"url":"https://api.github.com/repos/wkschwartz/pigosat/issues/6","labels_url":"https://api.github.com/repos/wkschwartz/pigosat/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/wkschwartz/pigosat/issues/6/comments","events_url":"https://api.github.com/repos/wkschwartz/pigosat/issues/6/events","html_url":"https://github.com/wkschwartz/pigosat/pull/6","id":57413851,"number":6,"title":"Factor out is-nil method guard","user":{"login":"wkschwartz","id":1417749,"avatar_url":"https://avatars.githubusercontent.com/u/1417749?v=3","gravatar_id":"","url":"https://api.github.com/users/wkschwartz","html_url":"https://github.com/wkschwartz","followers_url":"https://api.github.com/users/wkschwartz/followers","following_url":"https://api.github.com/users/wkschwartz/following{/other_user}","gists_url":"https://api.github.com/users/wkschwartz/gists{/gist_id}","starred_url":"https://api.github.com/users/wkschwartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkschwartz/subscriptions","organizations_url":"https://api.github.com/users/wkschwartz/orgs","repos_url":"https://api.github.com/users/wkschwartz/repos","events_url":"https://api.github.com/users/wkschwartz/events{/privacy}","received_events_url":"https://api.github.com/users/wkschwartz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-12T03:47:54Z","updated_at":"2015-02-12T13:50:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wkschwartz/pigosat/pulls/6","html_url":"https://github.com/wkschwartz/pigosat/pull/6","diff_url":"https://github.com/wkschwartz/pigosat/pull/6.diff","patch_url":"https://github.com/wkschwartz/pigosat/pull/6.patch"},"body":"Based on justinfx/pigosat@a755660. Open to suggestions about how to test 35d2c7f."},"comment":{"url":"https://api.github.com/repos/wkschwartz/pigosat/issues/comments/74072971","html_url":"https://github.com/wkschwartz/pigosat/pull/6#issuecomment-74072971","issue_url":"https://api.github.com/repos/wkschwartz/pigosat/issues/6","id":74072971,"user":{"login":"wkschwartz","id":1417749,"avatar_url":"https://avatars.githubusercontent.com/u/1417749?v=3","gravatar_id":"","url":"https://api.github.com/users/wkschwartz","html_url":"https://github.com/wkschwartz","followers_url":"https://api.github.com/users/wkschwartz/followers","following_url":"https://api.github.com/users/wkschwartz/following{/other_user}","gists_url":"https://api.github.com/users/wkschwartz/gists{/gist_id}","starred_url":"https://api.github.com/users/wkschwartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkschwartz/subscriptions","organizations_url":"https://api.github.com/users/wkschwartz/orgs","repos_url":"https://api.github.com/users/wkschwartz/repos","events_url":"https://api.github.com/users/wkschwartz/events{/privacy}","received_events_url":"https://api.github.com/users/wkschwartz/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T13:50:55Z","updated_at":"2015-02-12T13:50:55Z","body":"35d2c7f is wrong. The whole point of `p.isReady()` is to check whether `p` is `nil`, and thus if the lock can be accessed. Perhaps we should lock inside `p.isReady()`, have one for reading and one for read/write.\r\n\r\n```go\r\n```"}}