{"action":"opened","issue":{"url":"https://api.github.com/repos/magnars/js2-refactor.el/issues/101","repository_url":"https://api.github.com/repos/magnars/js2-refactor.el","labels_url":"https://api.github.com/repos/magnars/js2-refactor.el/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/magnars/js2-refactor.el/issues/101/comments","events_url":"https://api.github.com/repos/magnars/js2-refactor.el/issues/101/events","html_url":"https://github.com/magnars/js2-refactor.el/issues/101","id":268123223,"number":101,"title":"`inline-var` produces incorrect output if no semicolons are used","user":{"login":"DanielBrookRoberge","id":9043311,"avatar_url":"https://avatars1.githubusercontent.com/u/9043311?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielBrookRoberge","html_url":"https://github.com/DanielBrookRoberge","followers_url":"https://api.github.com/users/DanielBrookRoberge/followers","following_url":"https://api.github.com/users/DanielBrookRoberge/following{/other_user}","gists_url":"https://api.github.com/users/DanielBrookRoberge/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielBrookRoberge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielBrookRoberge/subscriptions","organizations_url":"https://api.github.com/users/DanielBrookRoberge/orgs","repos_url":"https://api.github.com/users/DanielBrookRoberge/repos","events_url":"https://api.github.com/users/DanielBrookRoberge/events{/privacy}","received_events_url":"https://api.github.com/users/DanielBrookRoberge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-24T17:39:53Z","updated_at":"2017-10-24T17:39:53Z","closed_at":null,"author_association":"NONE","body":"The `inline-var` operation leaves the `const`, `let` or `var` keyword in place if the file being edited does not use semicolons.\r\n\r\nExample before:\r\n```js\r\nconst fn = () => {\r\n  const count = 10\r\n  if (count > 5) {\r\n    console.log('True')\r\n  }\r\n}\r\n```\r\n\r\nAfter:\r\n```js\r\nconst fn = () => {\r\n  const  if (10 > 5) {\r\n    console.log('True')\r\n  }\r\n}\r\n```\r\n\r\nExpected:\r\n```js\r\nconst fn = () => {\r\n  if (10 > 5) {\r\n    console.log('True')\r\n  }\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"DanielBrookRoberge"}}