@@ -38,7 +38,7 @@ func (s *flasherServerImpl) Flash(req *flasher.FlashRequest, stream flasher.Flas
3838 }
3939 ctx := stream .Context ()
4040 downloadCB := func (msg * flasher.DownloadProgress ) {
41- responseCallback (& flasher.FlashResponse {
41+ _ = responseCallback (& flasher.FlashResponse {
4242 Message : & flasher.FlashResponse_DownloadProgress {
4343 DownloadProgress : & flasher.DownloadProgress {
4444 Message : msg .GetMessage (),
@@ -47,7 +47,7 @@ func (s *flasherServerImpl) Flash(req *flasher.FlashRequest, stream flasher.Flas
4747 })
4848 }
4949 extractCB := func (msg * flasher.TaskProgress ) {
50- responseCallback (& flasher.FlashResponse {
50+ _ = responseCallback (& flasher.FlashResponse {
5151 Message : & flasher.FlashResponse_ExtractionProgress {
5252 ExtractionProgress : & flasher.TaskProgress {
5353 Name : msg .GetName (),
@@ -58,7 +58,7 @@ func (s *flasherServerImpl) Flash(req *flasher.FlashRequest, stream flasher.Flas
5858 })
5959 }
6060 flashCB := func (msg * flasher.TaskProgress ) {
61- responseCallback (& flasher.FlashResponse {
61+ _ = responseCallback (& flasher.FlashResponse {
6262 Message : & flasher.FlashResponse_FlashProgress {
6363 FlashProgress : & flasher.TaskProgress {
6464 Name : msg .GetName (),
@@ -101,7 +101,7 @@ func (s *flasherServerImpl) Flash(req *flasher.FlashRequest, stream flasher.Flas
101101 }
102102
103103 tmpZip := paths .New (req .GetTempPath (), "arduino-unoq-debian-image-" + rel .Version + ".tar.zst" )
104- defer tmpZip .RemoveAll ()
104+ defer func () { _ = tmpZip .RemoveAll () } ()
105105
106106 if err := updater .DownloadFile (ctx , tmpZip , rel .Url , rel .Version , downloadCB , downloader.Config {}); err != nil {
107107 return err
@@ -123,7 +123,7 @@ func (s *flasherServerImpl) Flash(req *flasher.FlashRequest, stream flasher.Flas
123123 extractCB (& flasher.TaskProgress {Name : "extract" , Completed : true })
124124
125125 imagePath := tmpZip .Parent ().Join ("arduino-unoq-debian-image-" + rel .Version )
126- defer imagePath .RemoveAll ()
126+ defer func () { _ = imagePath .RemoveAll () } ()
127127
128128 flashCB (& flasher.TaskProgress {Name : "flash" , Message : "Starting" })
129129 if err := updater .FlashBoard (ctx , imagePath .String (), rel .Version , req .GetPreserveUser ()); err != nil {
0 commit comments