mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Do not add comments after migration (#8530)
Also filter out empty comments from being printed.
This commit is contained in:
@@ -46,6 +46,9 @@ func (kvs KVS) String() string {
|
||||
if k == stateKey && v == stateOn {
|
||||
continue
|
||||
}
|
||||
if k == commentKey && v == "" {
|
||||
continue
|
||||
}
|
||||
s.WriteString(k)
|
||||
s.WriteString(KvSeparator)
|
||||
spc := hasSpace(v)
|
||||
@@ -96,7 +99,6 @@ func (t Targets) String() string {
|
||||
s.WriteString(kv.String())
|
||||
if (len(t) > 1 || len(targetKV) > 1) && count > 0 {
|
||||
s.WriteString(KvNewline)
|
||||
s.WriteString(KvNewline)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user