mirror of https://github.com/k3s-io/k3s
Merge pull request #70237 from nikhita/proto-remove-trailing-whitespace
Remove trailing whitespace in the protobuf generatorpull/58/head
commit
f4bf0e8d33
|
@ -724,6 +724,10 @@ func genComment(out io.Writer, lines []string, indent string) {
|
|||
lines = lines[:l-1]
|
||||
}
|
||||
for _, c := range lines {
|
||||
if len(c) == 0 {
|
||||
fmt.Fprintf(out, "%s//\n", indent) // avoid trailing whitespace
|
||||
continue
|
||||
}
|
||||
fmt.Fprintf(out, "%s// %s\n", indent, c)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue