Skip to content

Commit

Permalink
fix(lint): format lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Dec 4, 2024
1 parent a5c8bd7 commit e4a5bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/status/print_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (mw *mockWriter) Write(p []byte) (n int, err error) {
return len(string(p)), nil
}
mw.errorCount++
return 0, fmt.Errorf("Boom: " + string(p))
return 0, fmt.Error("Boom: " + string(p))

Check failure on line 36 in cmd/oras/internal/display/status/print_test.go

View workflow job for this annotation

GitHub Actions / Analyze (1.22)

undefined: fmt.Error

Check failure on line 36 in cmd/oras/internal/display/status/print_test.go

View workflow job for this annotation

GitHub Actions / lint (1.22)

undefined: fmt.Error (typecheck)

Check failure on line 36 in cmd/oras/internal/display/status/print_test.go

View workflow job for this annotation

GitHub Actions / build (1.23)

undefined: fmt.Error
}

func (mw *mockWriter) String() string {
Expand Down

0 comments on commit e4a5bda

Please sign in to comment.