{"comment":{"url":"https://api.github.com/repos/nikfor/movies/comments/14369001","html_url":"https://github.com/nikfor/movies/commit/32f219802eae16b9f1a728d62e43ecbee534a0c7#commitcomment-14369001","id":14369001,"user":{"login":"zverok","id":129656,"avatar_url":"https://avatars.githubusercontent.com/u/129656?v=3","gravatar_id":"","url":"https://api.github.com/users/zverok","html_url":"https://github.com/zverok","followers_url":"https://api.github.com/users/zverok/followers","following_url":"https://api.github.com/users/zverok/following{/other_user}","gists_url":"https://api.github.com/users/zverok/gists{/gist_id}","starred_url":"https://api.github.com/users/zverok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zverok/subscriptions","organizations_url":"https://api.github.com/users/zverok/orgs","repos_url":"https://api.github.com/users/zverok/repos","events_url":"https://api.github.com/users/zverok/events{/privacy}","received_events_url":"https://api.github.com/users/zverok/received_events","type":"User","site_admin":false},"position":22,"line":61,"path":"movies_list.rb","commit_id":"32f219802eae16b9f1a728d62e43ecbee534a0c7","created_at":"2015-11-12T22:12:21Z","updated_at":"2015-11-12T22:12:21Z","body":"Один из важных принципов, которые руби старается соблюдать — DRY (Don't Repeat Yourself, не повторяйся). Если у тебя что-то в выражении повторяется — с большой вероятностью ты записал выражение не совсем верно (хотя оно может работать и так). В данном случае более корректное использование `?:` вот такое:\r\n```ruby\r\nunit = field == \"duration\" ? \"min\" : \"\"\r\n```"}}