(existing string)
| 101 | } |
| 102 | |
| 103 | func appendSetupBlock(existing string) string { |
| 104 | trimmed := strings.TrimRight(existing, "\n") |
| 105 | separator := "\n\n" |
| 106 | if trimmed == "" { |
| 107 | separator = "" |
| 108 | } |
| 109 | return trimmed + separator + buildSetupBlock(true) |
| 110 | } |
no test coverage detected