Skip to content

Commit a1b45b5

Browse files
committed
Removed useless variable
1 parent 133ad28 commit a1b45b5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: flasher/winc.go

-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ func (f *WincFlasher) FlashFirmware(firmwareFile *paths.Path, flasherOut io.Writ
7979

8080
func (f *WincFlasher) FlashCertificates(certificatePaths *paths.PathList, URLs []string, flasherOut io.Writer) error {
8181
var certificatesData []byte
82-
certificatesNumber := 0
8382
for _, certPath := range *certificatePaths {
8483
logrus.Infof("Converting and flashing certificate %s", certPath)
8584
flasherOut.Write([]byte(fmt.Sprintf("Converting and flashing certificate %s\n", certPath)))
@@ -89,7 +88,6 @@ func (f *WincFlasher) FlashCertificates(certificatePaths *paths.PathList, URLs [
8988
return err
9089
}
9190
certificatesData = append(certificatesData, data...)
92-
certificatesNumber++
9391
}
9492

9593
for _, URL := range URLs {
@@ -100,7 +98,6 @@ func (f *WincFlasher) FlashCertificates(certificatePaths *paths.PathList, URLs [
10098
return err
10199
}
102100
certificatesData = append(certificatesData, data...)
103-
certificatesNumber++
104101
}
105102

106103
certificatesOffset := 0x4000

0 commit comments

Comments
 (0)