Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 10, 2023
1 parent 9ab80e5 commit 9dfd6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/asrockrack/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (a *ASRockRack) firmwareInstallBMC(ctx context.Context, reader io.Reader, f
return errors.Wrap(err, "failed in step 1/4 - set device to flash mode")
}

mybytes, err = io.ReadAll(reader)
mybytes, err := io.ReadAll(reader)

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

View workflow job for this annotation

GitHub Actions / lint

ineffectual assignment to err (ineffassign)
fmt.Printf("ReadAll reader after setFlashMode len:%d\n", len(mybytes))

// 2. upload firmware image file
Expand Down

0 comments on commit 9dfd6c2

Please sign in to comment.