@@ -148,7 +148,7 @@ func setupDiffReport(r *Report) {
148148// print report for default output: diff
149149func printDiffReport (r * Report , to io.Writer ) {
150150 for _ , entry := range r .entries {
151- fmt .Fprintf (to , ansi .Color ("%s %s" , "yellow" )+ "\n " , entry .key , r .format .changestyles [entry .changeType ].message )
151+ _ , _ = fmt .Fprintf (to , ansi .Color ("%s %s" , "yellow" )+ "\n " , entry .key , r .format .changestyles [entry .changeType ].message )
152152 printDiffRecords (entry .suppressedKinds , entry .kind , entry .context , entry .diffs , to )
153153 }
154154}
@@ -170,13 +170,13 @@ func printSimpleReport(r *Report, to io.Writer) {
170170 "MODIFY" : 0 ,
171171 }
172172 for _ , entry := range r .entries {
173- fmt .Fprintf (to , ansi .Color ("%s %s" , r .format .changestyles [entry .changeType ].color )+ "\n " ,
173+ _ , _ = fmt .Fprintf (to , ansi .Color ("%s %s" , r .format .changestyles [entry .changeType ].color )+ "\n " ,
174174 entry .key ,
175175 r .format .changestyles [entry .changeType ].message ,
176176 )
177177 summary [entry .changeType ]++
178178 }
179- fmt .Fprintf (to , "Plan: %d to add, %d to change, %d to destroy.\n " , summary ["ADD" ], summary ["MODIFY" ], summary ["REMOVE" ])
179+ _ , _ = fmt .Fprintf (to , "Plan: %d to add, %d to change, %d to destroy.\n " , summary ["ADD" ], summary ["MODIFY" ], summary ["REMOVE" ])
180180}
181181
182182func newTemplate (name string ) * template.Template {
0 commit comments