Skip to content

Commit

Permalink
Display read size
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 10, 2023
1 parent e2b7e64 commit 8b42bbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/asrockrack/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ func (a *ASRockRack) uploadFirmware(ctx context.Context, endpoint string, fwRead
fmt.Println("After headers")
//<-errCh

//mybytes, err := io.ReadAll(pipeReader)
mybytes, err := io.ReadAll(pipeReader)

Check failure on line 272 in providers/asrockrack/helpers.go

View workflow job for this annotation

GitHub Actions / lint

ineffectual assignment to err (ineffassign)
fmt.Printf("ReadAll len:%d\n", len(mybytes))
//if len(mybytes) < 1000 {
// mystring := string(mybytes[:])
// return fmt.Errorf("data: %s", mystring)
Expand Down

0 comments on commit 8b42bbf

Please sign in to comment.