{"action":"closed","issue":{"url":"https://api.github.com/repos/LuckyWasTaken/huffman-encoder/issues/1","repository_url":"https://api.github.com/repos/LuckyWasTaken/huffman-encoder","labels_url":"https://api.github.com/repos/LuckyWasTaken/huffman-encoder/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/LuckyWasTaken/huffman-encoder/issues/1/comments","events_url":"https://api.github.com/repos/LuckyWasTaken/huffman-encoder/issues/1/events","html_url":"https://github.com/LuckyWasTaken/huffman-encoder/issues/1","id":359142318,"node_id":"MDU6SXNzdWUzNTkxNDIzMTg=","number":1,"title":"во славу модного кода #1","user":{"login":"MarsiBarsi","id":10106368,"node_id":"MDQ6VXNlcjEwMTA2MzY4","avatar_url":"https://avatars3.githubusercontent.com/u/10106368?v=4","gravatar_id":"","url":"https://api.github.com/users/MarsiBarsi","html_url":"https://github.com/MarsiBarsi","followers_url":"https://api.github.com/users/MarsiBarsi/followers","following_url":"https://api.github.com/users/MarsiBarsi/following{/other_user}","gists_url":"https://api.github.com/users/MarsiBarsi/gists{/gist_id}","starred_url":"https://api.github.com/users/MarsiBarsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarsiBarsi/subscriptions","organizations_url":"https://api.github.com/users/MarsiBarsi/orgs","repos_url":"https://api.github.com/users/MarsiBarsi/repos","events_url":"https://api.github.com/users/MarsiBarsi/events{/privacy}","received_events_url":"https://api.github.com/users/MarsiBarsi/received_events","type":"User","site_admin":false},"labels":[{"id":1052177238,"node_id":"MDU6TGFiZWwxMDUyMTc3MjM4","url":"https://api.github.com/repos/LuckyWasTaken/huffman-encoder/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":{"login":"LuckyWasTaken","id":10729291,"node_id":"MDQ6VXNlcjEwNzI5Mjkx","avatar_url":"https://avatars2.githubusercontent.com/u/10729291?v=4","gravatar_id":"","url":"https://api.github.com/users/LuckyWasTaken","html_url":"https://github.com/LuckyWasTaken","followers_url":"https://api.github.com/users/LuckyWasTaken/followers","following_url":"https://api.github.com/users/LuckyWasTaken/following{/other_user}","gists_url":"https://api.github.com/users/LuckyWasTaken/gists{/gist_id}","starred_url":"https://api.github.com/users/LuckyWasTaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuckyWasTaken/subscriptions","organizations_url":"https://api.github.com/users/LuckyWasTaken/orgs","repos_url":"https://api.github.com/users/LuckyWasTaken/repos","events_url":"https://api.github.com/users/LuckyWasTaken/events{/privacy}","received_events_url":"https://api.github.com/users/LuckyWasTaken/received_events","type":"User","site_admin":false},"assignees":[{"login":"LuckyWasTaken","id":10729291,"node_id":"MDQ6VXNlcjEwNzI5Mjkx","avatar_url":"https://avatars2.githubusercontent.com/u/10729291?v=4","gravatar_id":"","url":"https://api.github.com/users/LuckyWasTaken","html_url":"https://github.com/LuckyWasTaken","followers_url":"https://api.github.com/users/LuckyWasTaken/followers","following_url":"https://api.github.com/users/LuckyWasTaken/following{/other_user}","gists_url":"https://api.github.com/users/LuckyWasTaken/gists{/gist_id}","starred_url":"https://api.github.com/users/LuckyWasTaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuckyWasTaken/subscriptions","organizations_url":"https://api.github.com/users/LuckyWasTaken/orgs","repos_url":"https://api.github.com/users/LuckyWasTaken/repos","events_url":"https://api.github.com/users/LuckyWasTaken/events{/privacy}","received_events_url":"https://api.github.com/users/LuckyWasTaken/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-09-11T17:18:45Z","updated_at":"2018-09-11T18:02:45Z","closed_at":"2018-09-11T18:02:45Z","author_association":"NONE","body":"давай ретурнить с кодом 1 сразу, если стрим закрыт\r\n\r\n```\r\nif (!input.is_open())\r\n{\r\n    cout << \"Unable to open file\";\r\n    return 1;\r\n}\r\n\r\nchar c;\r\nwhile (input.get(c))\r\n...\r\n```\r\nelse писать не нужно -> код не такой глубокий получается и легче читается"}}
{"actor":{"display_login":"LuckyWasTaken"}}