From 3612bd58ef461b30d4afe3f91138b856aeac6cb0 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 1 Dec 2020 17:00:00 +0100 Subject: [PATCH] fmt: revert the fn \n change --- vlib/v/fmt/fmt.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/fmt/fmt.v b/vlib/v/fmt/fmt.v index 9eb0b7b30f..a469c1402d 100644 --- a/vlib/v/fmt/fmt.v +++ b/vlib/v/fmt/fmt.v @@ -1265,7 +1265,7 @@ pub fn (mut f Fmt) fn_decl(node ast.FnDecl) { f.stmts(node.stmts) f.write('}') } - if !node.is_anon && !node.no_body { + if !node.is_anon { f.writeln('\n') } } else {