lib/json: remove useless types
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 21 May 2015 21:27:37 +0000 (17:27 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 28 May 2015 13:56:12 +0000 (09:56 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/json/dynamic.nit

index d0559e0..594aac6 100644 (file)
@@ -131,8 +131,7 @@ class JsonValue
        #     assert "123".to_json_value.to_s == "123"
        #     assert "true".to_json_value.to_s == "true"
        #     assert "[1, 2, 3]".to_json_value.to_s == "123"
-       redef fun to_s: String
-       do
+       redef fun to_s do
                if value == null then return "null"
                return value.to_s
        end