1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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