{"comment":{"url":"https://api.github.com/repos/EduardStreltsov/learnwords/comments/19969204","html_url":"https://github.com/EduardStreltsov/learnwords/commit/7b119b375806d8b1bbbbc6ffc78f9e5c0bef6124#commitcomment-19969204","id":19969204,"user":{"login":"sorrro","id":694894,"avatar_url":"https://avatars.githubusercontent.com/u/694894?v=3","gravatar_id":"","url":"https://api.github.com/users/sorrro","html_url":"https://github.com/sorrro","followers_url":"https://api.github.com/users/sorrro/followers","following_url":"https://api.github.com/users/sorrro/following{/other_user}","gists_url":"https://api.github.com/users/sorrro/gists{/gist_id}","starred_url":"https://api.github.com/users/sorrro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorrro/subscriptions","organizations_url":"https://api.github.com/users/sorrro/orgs","repos_url":"https://api.github.com/users/sorrro/repos","events_url":"https://api.github.com/users/sorrro/events{/privacy}","received_events_url":"https://api.github.com/users/sorrro/received_events","type":"User","site_admin":false},"position":41,"line":41,"path":"src/com/learnwords/UserStats.java","commit_id":"7b119b375806d8b1bbbbc6ffc78f9e5c0bef6124","created_at":"2016-11-26T09:29:29Z","updated_at":"2016-11-26T09:29:29Z","body":"This block can bi simplified a little:\r\n```\r\n        String key = word.trim();\r\n        int inc = rightAnswer ? 1 : -1;\r\n        int newValue = points.getOrDefault(key, 0) + inc;\r\n        if (newValue <= MAX_POINTS || newValue >= MIN_POINTS) {\r\n            points.put(key, newValue);\r\n        }\r\n```"}}
{"actor":{"display_login":"sorrro"}}