diff options
| author | Jeff Carr <[email protected]> | 2025-04-12 11:25:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-04-12 11:25:32 -0500 |
| commit | 58ce73adf7e557915409bbf137541a5334c2e099 (patch) | |
| tree | 4a843f2ae0565747ec1e3f2f0d0edaceaf9eab0f | |
| parent | d958fda766891276322296376964d9a63dfdc1dd (diff) | |
this was supposed to only be debug codev0.0.69
| -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") } |
