{"action":"closed","issue":{"url":"https://api.github.com/repos/lawrencec/Unroll/issues/5","labels_url":"https://api.github.com/repos/lawrencec/Unroll/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/lawrencec/Unroll/issues/5/comments","events_url":"https://api.github.com/repos/lawrencec/Unroll/issues/5/events","html_url":"https://github.com/lawrencec/Unroll/issues/5","id":95377647,"number":5,"title":"Performance issue: Unnecessary check on every single call","user":{"login":"deepakshrma","id":7682731,"avatar_url":"https://avatars.githubusercontent.com/u/7682731?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakshrma","html_url":"https://github.com/deepakshrma","followers_url":"https://api.github.com/users/deepakshrma/followers","following_url":"https://api.github.com/users/deepakshrma/following{/other_user}","gists_url":"https://api.github.com/users/deepakshrma/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakshrma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakshrma/subscriptions","organizations_url":"https://api.github.com/users/deepakshrma/orgs","repos_url":"https://api.github.com/users/deepakshrma/repos","events_url":"https://api.github.com/users/deepakshrma/events{/privacy}","received_events_url":"https://api.github.com/users/deepakshrma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-16T08:16:33Z","updated_at":"2015-12-29T23:58:50Z","closed_at":"2015-12-29T23:58:50Z","body":" unroll method check for unroll.grammar value if it is not defined it calls unroll.use method. We can avoid this call by restrict user not to use undefined grammar type.\r\n\r\nI have created a pull request. Kindly verify the same. \r\nhttps://github.com/lawrencec/Unroll/pull/4"}}