{"action":"created","issue":{"url":"https://api.github.com/repos/eventualbuddha/decaffeinate/issues/89","labels_url":"https://api.github.com/repos/eventualbuddha/decaffeinate/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/eventualbuddha/decaffeinate/issues/89/comments","events_url":"https://api.github.com/repos/eventualbuddha/decaffeinate/issues/89/events","html_url":"https://github.com/eventualbuddha/decaffeinate/issues/89","id":121474208,"number":89,"title":"Ternary expression inside one liner function produces wrong output","user":{"login":"netei","id":13066384,"avatar_url":"https://avatars.githubusercontent.com/u/13066384?v=3","gravatar_id":"","url":"https://api.github.com/users/netei","html_url":"https://github.com/netei","followers_url":"https://api.github.com/users/netei/followers","following_url":"https://api.github.com/users/netei/following{/other_user}","gists_url":"https://api.github.com/users/netei/gists{/gist_id}","starred_url":"https://api.github.com/users/netei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netei/subscriptions","organizations_url":"https://api.github.com/users/netei/orgs","repos_url":"https://api.github.com/users/netei/repos","events_url":"https://api.github.com/users/netei/events{/privacy}","received_events_url":"https://api.github.com/users/netei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T12:38:42Z","updated_at":"2015-12-11T14:29:38Z","closed_at":null,"body":"Thanks for correcting all other issues :-) \r\n\r\nInput : \r\n\r\n`f=()->if a? then 1 else 0`\r\n\r\nOutputs: \r\n\r\n`var f=function(){(typeof a !== \"undefined\" && a !== null) ? return 1 : return 0 };` \r\n\r\nExpected: \r\n\r\n```\r\nvar f=function(){return (typeof a !== \"undefined\" && a !== null) ? 1 : 0 };\r\n```\r\n\r\nThe outputed version is not valid es6"},"comment":{"url":"https://api.github.com/repos/eventualbuddha/decaffeinate/issues/comments/163948731","html_url":"https://github.com/eventualbuddha/decaffeinate/issues/89#issuecomment-163948731","issue_url":"https://api.github.com/repos/eventualbuddha/decaffeinate/issues/89","id":163948731,"user":{"login":"eventualbuddha","id":1938,"avatar_url":"https://avatars.githubusercontent.com/u/1938?v=3","gravatar_id":"","url":"https://api.github.com/users/eventualbuddha","html_url":"https://github.com/eventualbuddha","followers_url":"https://api.github.com/users/eventualbuddha/followers","following_url":"https://api.github.com/users/eventualbuddha/following{/other_user}","gists_url":"https://api.github.com/users/eventualbuddha/gists{/gist_id}","starred_url":"https://api.github.com/users/eventualbuddha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventualbuddha/subscriptions","organizations_url":"https://api.github.com/users/eventualbuddha/orgs","repos_url":"https://api.github.com/users/eventualbuddha/repos","events_url":"https://api.github.com/users/eventualbuddha/events{/privacy}","received_events_url":"https://api.github.com/users/eventualbuddha/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T14:29:38Z","updated_at":"2015-12-11T14:29:38Z","body":"[REPL](http://eventualbuddha.github.io/decaffeinate/repl/#?evaluate=true&code=f%3D()-%3Eif%20a%3F%20then%201%20else%200) shows the same output."}}