ci: workaround -autofree codegen bug with nested fn calls on macos

pull/10890/head
Delyan Angelov 2021-07-22 11:02:17 +03:00
parent 8f3646cb81
commit 9315154201
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 2 additions and 1 deletions

View File

@ -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() {