Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a1b45b5

Browse filesBrowse files
committed
Removed useless variable
1 parent 133ad28 commit a1b45b5
Copy full SHA for a1b45b5

File tree

Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed

‎flasher/winc.go

Copy file name to clipboardExpand all lines: flasher/winc.go
-3Lines changed: 0 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.