Skip to content

Commit 77093c8

Browse files
Replace fmt.Errorf(\"%s\", detail) with errors.New in checkImageBuildResponse
fmt.Errorf with a plain %s verb (no wrapping) triggers go vet's printf-style warning and adds unnecessary overhead. errors.New is the correct call when there is no cause to wrap. ai-assisted=yes Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7c36e19 commit 77093c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/test/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ func checkImageBuildResponse(body io.ReadCloser, logOutput io.Writer) error {
518518
if msg.ErrorDetail.Message != "" {
519519
detail = msg.ErrorDetail.Message
520520
}
521-
return fmt.Errorf("%s", detail)
521+
return errors.New(detail)
522522
}
523523
}
524524
return nil

0 commit comments

Comments
 (0)