@@ -180,7 +180,7 @@ func GetHTMLReportCommand() *cobra.Command {
180180 if len (report ) <= 0 && er != nil {
181181 return er [0 ]
182182 }
183- return writeReportFile (err , reportFile , report )
183+ return writeReportFile (reportFile , report )
184184 }
185185
186186 } else {
@@ -215,7 +215,7 @@ func GetHTMLReportCommand() *cobra.Command {
215215 return err
216216 }
217217 p = args [1 ]
218- f , err = os .Stat (filepath .Join (repo , p ))
218+ _ , err = os .Stat (filepath .Join (repo , p ))
219219 if err != nil {
220220 pterm .Error .Printf ("Cannot open file/repository: '%s'\n \n " , args [1 ])
221221 return err
@@ -232,7 +232,7 @@ func GetHTMLReportCommand() *cobra.Command {
232232 return er [0 ]
233233 }
234234
235- writeErr := writeReportFile (err , reportFile , report )
235+ writeErr := writeReportFile (reportFile , report )
236236
237237 return writeErr
238238
@@ -262,7 +262,7 @@ func GetHTMLReportCommand() *cobra.Command {
262262 return errors .New ("unable to process specifications" )
263263 }
264264
265- return writeReportFile (err , reportFile , report )
265+ return writeReportFile (reportFile , report )
266266 }
267267 }
268268 pterm .Error .Println ("wrong number of arguments, expecting two (2)" )
@@ -276,8 +276,8 @@ func GetHTMLReportCommand() *cobra.Command {
276276 return cmd
277277}
278278
279- func writeReportFile (err error , reportFile string , report []byte ) error {
280- err = os .WriteFile (reportFile , report , 0744 )
279+ func writeReportFile (reportFile string , report []byte ) error {
280+ err : = os .WriteFile (reportFile , report , 0744 )
281281 if err != nil {
282282 pterm .Error .Println (err .Error ())
283283 return err
0 commit comments