{"action":"opened","issue":{"url":"https://api.github.com/repos/tendermint/tendermint/issues/1487","repository_url":"https://api.github.com/repos/tendermint/tendermint","labels_url":"https://api.github.com/repos/tendermint/tendermint/issues/1487/labels{/name}","comments_url":"https://api.github.com/repos/tendermint/tendermint/issues/1487/comments","events_url":"https://api.github.com/repos/tendermint/tendermint/issues/1487/events","html_url":"https://github.com/tendermint/tendermint/issues/1487","id":316680110,"number":1487,"title":"some confused code in types/validator_set.go","user":{"login":"iamyh","id":11833472,"avatar_url":"https://avatars2.githubusercontent.com/u/11833472?v=4","gravatar_id":"","url":"https://api.github.com/users/iamyh","html_url":"https://github.com/iamyh","followers_url":"https://api.github.com/users/iamyh/followers","following_url":"https://api.github.com/users/iamyh/following{/other_user}","gists_url":"https://api.github.com/users/iamyh/gists{/gist_id}","starred_url":"https://api.github.com/users/iamyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamyh/subscriptions","organizations_url":"https://api.github.com/users/iamyh/orgs","repos_url":"https://api.github.com/users/iamyh/repos","events_url":"https://api.github.com/users/iamyh/events{/privacy}","received_events_url":"https://api.github.com/users/iamyh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-23T06:37:01Z","updated_at":"2018-04-23T06:37:01Z","closed_at":null,"author_association":"NONE","body":"```\r\nfunc (valSet *ValidatorSet) findProposer() *Validator {\r\n\tvar proposer *Validator\r\n\tfor _, val := range valSet.Validators {\r\n\t\tif proposer == nil || !bytes.Equal(val.Address, proposer.Address) {\r\n\t\t\tproposer = proposer.CompareAccum(val)\r\n\t\t}\r\n\t}\r\n\treturn proposer\r\n}\r\n```\r\n\r\nwhen proposer is nil, why it can use method 'CompareAccum' of nil?"}}
{"actor":{"display_login":"iamyh"}}