Remove leading/trailing newlines following whitespace linter recommendation

This commit is contained in:
Arthur Mello
2019-12-05 23:27:01 -03:00
parent a077482e99
commit d4fa006ccb
10 changed files with 0 additions and 13 deletions

View File

@@ -54,7 +54,6 @@ func (w ByteWriter) Write(nodes []*yaml.RNode) error {
encoder := yaml.NewEncoder(w.Writer)
defer encoder.Close()
for i := range nodes {
// clean resources by removing annotations set by the Reader
if !w.KeepReaderAnnotations {
_, err := nodes[i].Pipe(yaml.ClearAnnotation(kioutil.IndexAnnotation))