{"action":"closed","issue":{"url":"https://api.github.com/repos/jshint/jshint/issues/2768","labels_url":"https://api.github.com/repos/jshint/jshint/issues/2768/labels{/name}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/2768/comments","events_url":"https://api.github.com/repos/jshint/jshint/issues/2768/events","html_url":"https://github.com/jshint/jshint/issues/2768","id":117348688,"number":2768,"title":"double define variable in if {} else {} problem","user":{"login":"MaxiBul","id":6195377,"avatar_url":"https://avatars.githubusercontent.com/u/6195377?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxiBul","html_url":"https://github.com/MaxiBul","followers_url":"https://api.github.com/users/MaxiBul/followers","following_url":"https://api.github.com/users/MaxiBul/following{/other_user}","gists_url":"https://api.github.com/users/MaxiBul/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxiBul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxiBul/subscriptions","organizations_url":"https://api.github.com/users/MaxiBul/orgs","repos_url":"https://api.github.com/users/MaxiBul/repos","events_url":"https://api.github.com/users/MaxiBul/events{/privacy}","received_events_url":"https://api.github.com/users/MaxiBul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-17T12:50:27Z","updated_at":"2015-11-21T21:00:26Z","closed_at":"2015-11-21T21:00:26Z","body":"Problem code:\r\n`if ($foo)`\r\n`{`\r\n`  // ...`\r\n`  var name = \"a1\";`\r\n`}`\r\n`else`\r\n`  var name = \"a2\";`\r\n\r\njshint swears on second definition: `'name' is already defined.`\r\nIs it correct message?"}}