Running gofmt manually, auto gofmt didn't simplify code

master
Frederick F. Kautz IV 10 years ago
parent 56a298fd6a
commit f91f5e59ee
  1. 2
      pkg/storage/donut/erasure.go

@ -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…
Cancel
Save