{"action":"opened","issue":{"url":"https://api.github.com/repos/SMH110/My-Calculator/issues/24","repository_url":"https://api.github.com/repos/SMH110/My-Calculator","labels_url":"https://api.github.com/repos/SMH110/My-Calculator/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/SMH110/My-Calculator/issues/24/comments","events_url":"https://api.github.com/repos/SMH110/My-Calculator/issues/24/events","html_url":"https://github.com/SMH110/My-Calculator/issues/24","id":158123968,"number":24,"title":"Operator methods have lots of duplicated code","user":{"login":"massimocode","id":3898363,"avatar_url":"https://avatars.githubusercontent.com/u/3898363?v=3","gravatar_id":"","url":"https://api.github.com/users/massimocode","html_url":"https://github.com/massimocode","followers_url":"https://api.github.com/users/massimocode/followers","following_url":"https://api.github.com/users/massimocode/following{/other_user}","gists_url":"https://api.github.com/users/massimocode/gists{/gist_id}","starred_url":"https://api.github.com/users/massimocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massimocode/subscriptions","organizations_url":"https://api.github.com/users/massimocode/orgs","repos_url":"https://api.github.com/users/massimocode/repos","events_url":"https://api.github.com/users/massimocode/events{/privacy}","received_events_url":"https://api.github.com/users/massimocode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-02T12:00:20Z","updated_at":"2016-06-02T12:00:20Z","closed_at":null,"body":"We could fix this by having an operator function that takes the operator as a parameter. We would keep the addDivision, addPlus, etc methods but all they would do is call this operator function. This common function would not be on the API. This would greatly reduce the amount of code we have."}}
{"actor":{"display_login":"massimocode"}}