mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
chore: use errors.New to replace fmt.Errorf with no parameters (#19568)
Signed-off-by: ChengenH <hce19970702@gmail.com>
This commit is contained in:
@@ -197,7 +197,7 @@ func (h *HTTPRangeSpec) ToHeader() (string, error) {
|
||||
case h.Start > -1:
|
||||
end = ""
|
||||
default:
|
||||
return "", fmt.Errorf("does not have valid range value")
|
||||
return "", errors.New("does not have valid range value")
|
||||
}
|
||||
return fmt.Sprintf("bytes=%s-%s", start, end), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user