{"action":"created","issue":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/826","repository_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer","labels_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/826/labels{/name}","comments_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/826/comments","events_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/826/events","html_url":"https://github.com/SpartanRefactoring/Spartanizer/issues/826","id":188907912,"number":826,"title":"No Safety Check for Identical if-else Branches","user":{"login":"yosefraisman","id":16455692,"avatar_url":"https://avatars.githubusercontent.com/u/16455692?v=3","gravatar_id":"","url":"https://api.github.com/users/yosefraisman","html_url":"https://github.com/yosefraisman","followers_url":"https://api.github.com/users/yosefraisman/followers","following_url":"https://api.github.com/users/yosefraisman/following{/other_user}","gists_url":"https://api.github.com/users/yosefraisman/gists{/gist_id}","starred_url":"https://api.github.com/users/yosefraisman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosefraisman/subscriptions","organizations_url":"https://api.github.com/users/yosefraisman/orgs","repos_url":"https://api.github.com/users/yosefraisman/repos","events_url":"https://api.github.com/users/yosefraisman/events{/privacy}","received_events_url":"https://api.github.com/users/yosefraisman/received_events","type":"User","site_admin":false},"labels":[{"id":335087650,"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/labels/bug","name":"bug","color":"d93f0b","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/milestones/17","html_url":"https://github.com/SpartanRefactoring/Spartanizer/milestones/V2.65:%20Folks%20dry%20submission","labels_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/milestones/17/labels","id":2041906,"number":17,"title":"V2.65: Folks dry submission","description":"","creator":{"login":"yossigil","id":12775400,"avatar_url":"https://avatars.githubusercontent.com/u/12775400?v=3","gravatar_id":"","url":"https://api.github.com/users/yossigil","html_url":"https://github.com/yossigil","followers_url":"https://api.github.com/users/yossigil/followers","following_url":"https://api.github.com/users/yossigil/following{/other_user}","gists_url":"https://api.github.com/users/yossigil/gists{/gist_id}","starred_url":"https://api.github.com/users/yossigil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yossigil/subscriptions","organizations_url":"https://api.github.com/users/yossigil/orgs","repos_url":"https://api.github.com/users/yossigil/repos","events_url":"https://api.github.com/users/yossigil/events{/privacy}","received_events_url":"https://api.github.com/users/yossigil/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":5,"state":"open","created_at":"2016-10-01T22:37:38Z","updated_at":"2016-11-12T11:56:07Z","due_on":"2016-11-23T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-11-12T11:56:07Z","updated_at":"2016-11-12T13:00:21Z","closed_at":null,"body":"Before Spartanization:\r\n```\r\n\treturn changeGlobal() ? adder1 + adder2 : adder1 + adder2;\r\n```\r\nAfter \"Tip: Eliminate conditional expression with identical branches\":\r\n```\r\n\treturn adder1 + adder2;\r\n```\r\nWhich can be problematic if `changeGlobal()` has an effect other than returning a boolean (e.g. if it does `++globalVariable`) @yossigil @OriRoth "},"comment":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/comments/260120815","html_url":"https://github.com/SpartanRefactoring/Spartanizer/issues/826#issuecomment-260120815","issue_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/826","id":260120815,"user":{"login":"OriRoth","id":15183108,"avatar_url":"https://avatars.githubusercontent.com/u/15183108?v=3","gravatar_id":"","url":"https://api.github.com/users/OriRoth","html_url":"https://github.com/OriRoth","followers_url":"https://api.github.com/users/OriRoth/followers","following_url":"https://api.github.com/users/OriRoth/following{/other_user}","gists_url":"https://api.github.com/users/OriRoth/gists{/gist_id}","starred_url":"https://api.github.com/users/OriRoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriRoth/subscriptions","organizations_url":"https://api.github.com/users/OriRoth/orgs","repos_url":"https://api.github.com/users/OriRoth/repos","events_url":"https://api.github.com/users/OriRoth/events{/privacy}","received_events_url":"https://api.github.com/users/OriRoth/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T13:00:21Z","updated_at":"2016-11-12T13:00:21Z","body":"Now go and fight some Persians."}}
{"actor":{"display_login":"OriRoth"}}