code: explicitly call init in some named constructors
[nit.git] / lib / github / events.nit
index 543a786..33c637f 100644 (file)
@@ -34,7 +34,7 @@ class GithubEvent
 
        # Init `self` from a `json` object.
        init from_json(api: GithubAPI, json: JsonObject) do
-               self.api = api
+               init(api)
                self.json = json
        end