{"action":"created","issue":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1082","repository_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer","labels_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1082/labels{/name}","comments_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1082/comments","events_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1082/events","html_url":"https://github.com/SpartanRefactoring/Spartanizer/issues/1082","id":200973192,"number":1082,"title":"Bug in switch to if statement tipper","user":{"login":"yuvalsimon","id":17455055,"avatar_url":"https://avatars1.githubusercontent.com/u/17455055?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvalsimon","html_url":"https://github.com/yuvalsimon","followers_url":"https://api.github.com/users/yuvalsimon/followers","following_url":"https://api.github.com/users/yuvalsimon/following{/other_user}","gists_url":"https://api.github.com/users/yuvalsimon/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvalsimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvalsimon/subscriptions","organizations_url":"https://api.github.com/users/yuvalsimon/orgs","repos_url":"https://api.github.com/users/yuvalsimon/repos","events_url":"https://api.github.com/users/yuvalsimon/events{/privacy}","received_events_url":"https://api.github.com/users/yuvalsimon/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":{"login":"ravivos","id":7875588,"avatar_url":"https://avatars1.githubusercontent.com/u/7875588?v=3","gravatar_id":"","url":"https://api.github.com/users/ravivos","html_url":"https://github.com/ravivos","followers_url":"https://api.github.com/users/ravivos/followers","following_url":"https://api.github.com/users/ravivos/following{/other_user}","gists_url":"https://api.github.com/users/ravivos/gists{/gist_id}","starred_url":"https://api.github.com/users/ravivos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravivos/subscriptions","organizations_url":"https://api.github.com/users/ravivos/orgs","repos_url":"https://api.github.com/users/ravivos/repos","events_url":"https://api.github.com/users/ravivos/events{/privacy}","received_events_url":"https://api.github.com/users/ravivos/received_events","type":"User","site_admin":false},"assignees":[{"login":"ravivos","id":7875588,"avatar_url":"https://avatars1.githubusercontent.com/u/7875588?v=3","gravatar_id":"","url":"https://api.github.com/users/ravivos","html_url":"https://github.com/ravivos","followers_url":"https://api.github.com/users/ravivos/followers","following_url":"https://api.github.com/users/ravivos/following{/other_user}","gists_url":"https://api.github.com/users/ravivos/gists{/gist_id}","starred_url":"https://api.github.com/users/ravivos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravivos/subscriptions","organizations_url":"https://api.github.com/users/ravivos/orgs","repos_url":"https://api.github.com/users/ravivos/repos","events_url":"https://api.github.com/users/ravivos/events{/privacy}","received_events_url":"https://api.github.com/users/ravivos/received_events","type":"User","site_admin":false},{"login":"yuvalsimon","id":17455055,"avatar_url":"https://avatars1.githubusercontent.com/u/17455055?v=3","gravatar_id":"","url":"https://api.github.com/users/yuvalsimon","html_url":"https://github.com/yuvalsimon","followers_url":"https://api.github.com/users/yuvalsimon/followers","following_url":"https://api.github.com/users/yuvalsimon/following{/other_user}","gists_url":"https://api.github.com/users/yuvalsimon/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvalsimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvalsimon/subscriptions","organizations_url":"https://api.github.com/users/yuvalsimon/orgs","repos_url":"https://api.github.com/users/yuvalsimon/repos","events_url":"https://api.github.com/users/yuvalsimon/events{/privacy}","received_events_url":"https://api.github.com/users/yuvalsimon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2017-01-16T09:51:43Z","updated_at":"2017-04-01T11:12:15Z","closed_at":null,"body":"Need to consider side effects, for example\r\n```\r\nswitch(foo()) {\r\ncase 1: case 2: x=1;break;\r\ndefault: x=2;\r\n}\r\n```\r\nto\r\n```\r\nif(foo() == 1 || foo() ==2) x=1;\r\nelse x=2;\r\n```\r\nI will not tip when have side effects for now.\r\n@yossigil If we want to tip when have side effects we need to add temporary variable using environment, but still we will get less code when using the tipper so it is spartan programming. Should I add it?"},"comment":{"url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/comments/290913558","html_url":"https://github.com/SpartanRefactoring/Spartanizer/issues/1082#issuecomment-290913558","issue_url":"https://api.github.com/repos/SpartanRefactoring/Spartanizer/issues/1082","id":290913558,"user":{"login":"yossigil","id":12775400,"avatar_url":"https://avatars2.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},"created_at":"2017-04-01T11:12:15Z","updated_at":"2017-04-01T11:12:15Z","body":"@ravivos : FYI"}}
{"actor":{"display_login":"yossigil"}}