From 93151542017752c67bdae42b77b005a0fef335df Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 22 Jul 2021 11:02:17 +0300 Subject: [PATCH] ci: workaround -autofree codegen bug with nested fn calls on macos --- .../building_a_simple_web_blog_with_vweb/code/blog/blog.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v index b670c31e89..823567cfde 100644 --- a/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v +++ b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v @@ -74,7 +74,8 @@ pub fn (mut app App) new_article() vweb.Result { ['/articles'; get] pub fn (mut app App) articles() vweb.Result { articles := app.find_all_articles() - return app.json(json.encode(articles)) + json_result := json.encode(articles) + return app.json(json_result) } fn (mut app App) time() {