{"comment":{"url":"https://api.github.com/repos/tarmac/pregnancy-control/comments/13952406","html_url":"https://github.com/tarmac/pregnancy-control/commit/e0025b33952d0f88e07762b99007805fa9e8e52c#commitcomment-13952406","id":13952406,"user":{"login":"ppazos","id":1278556,"avatar_url":"https://avatars.githubusercontent.com/u/1278556?v=3","gravatar_id":"","url":"https://api.github.com/users/ppazos","html_url":"https://github.com/ppazos","followers_url":"https://api.github.com/users/ppazos/followers","following_url":"https://api.github.com/users/ppazos/following{/other_user}","gists_url":"https://api.github.com/users/ppazos/gists{/gist_id}","starred_url":"https://api.github.com/users/ppazos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppazos/subscriptions","organizations_url":"https://api.github.com/users/ppazos/orgs","repos_url":"https://api.github.com/users/ppazos/repos","events_url":"https://api.github.com/users/ppazos/events{/privacy}","received_events_url":"https://api.github.com/users/ppazos/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"e0025b33952d0f88e07762b99007805fa9e8e52c","created_at":"2015-10-23T13:48:47Z","updated_at":"2015-10-23T13:48:47Z","body":"@elbosio a couple of simplifications:\r\n\r\nthis:\r\ndef errorMessage =  null\r\ndef successMessage = null\r\n\r\ncan be: def errorMessage, successMessage\r\n\r\n\r\nand this: if(condition.id == null) \r\ncan be if(!condition.id) \r\n\r\nref: http://pledbrook.github.io/groovy-cheat-sheet/guide/index.html#_groovy_truth"}}