From 58ce73adf7e557915409bbf137541a5334c2e099 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 12 Apr 2025 11:25:32 -0500 Subject: [PATCH] this was supposed to only be debug code --- example/fruit.proto | 1 - protoReformat.go | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example/fruit.proto b/example/fruit.proto index 3924026..f528c6c 100644 --- a/example/fruit.proto +++ b/example/fruit.proto @@ -75,4 +75,3 @@ message Fruits { // `autogenpb:marshal` ` int64 cost = 4; // you can add additional things here but the three lines above must conform to the standard above map junk = 5; } -// footer was empty diff --git a/protoReformat.go b/protoReformat.go index b773d14..681cbc2 100644 --- a/protoReformat.go +++ b/protoReformat.go @@ -423,7 +423,10 @@ func (parent *FormatMsg) format() []string { func (msg *FormatMsg) formatFooter(line string, dbg string) string { if line == "" { - return "// footer was empty" + if argv.Debug { + return "// footer was empty" + } + return "" } return msg.formatLineBase(line, "footer") }