Skip to content

Commit

Permalink
Tro to seek 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 10, 2023
1 parent bd7e992 commit 5821518
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/asrockrack/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func (a *ASRockRack) FirmwareInstall(ctx context.Context, component, applyAt str
}

size = finfo.Size()

fmt.Printf("File size:%d\n", size)
file.Seek(0, 0)

Check failure on line 42 in providers/asrockrack/firmware.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `file.Seek` is not checked (errcheck)
}

component = strings.ToUpper(component)
Expand Down

0 comments on commit 5821518

Please sign in to comment.