diff options
| -rw-r--r-- | example/fruit.proto | 1 | ||||
| -rw-r--r-- | 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<string, string> 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") } |
