mirror of
https://github.com/minio/minio.git
synced 2025-03-04 15:50:08 -05:00
Running gofmt manually, auto gofmt didn't simplify code
This commit is contained in:
parent
56a298fd6a
commit
f91f5e59ee
@ -142,7 +142,7 @@ func (eWriter erasureWriter) CloseWithError(err error) error {
|
||||
}
|
||||
|
||||
func (eWriter erasureWriter) SetMetadata(metadata map[string]string) error {
|
||||
for k, _ := range metadata {
|
||||
for k := range metadata {
|
||||
if strings.HasPrefix(k, "sys.") {
|
||||
return errors.New("Invalid key '" + k + "', cannot start with sys.'")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user