Merge pull request #932 from filecoin-project/feat/cfg-uncomment-sections

config: Don't comment sections be default
This commit is contained in:
Jakub Sztandera 2019-12-16 13:03:45 +01:00 committed by GitHub
commit c25f616562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 10 deletions

View File

@ -44,6 +44,7 @@ func ConfigComment(t interface{}) ([]byte, error) {
}
b := buf.Bytes()
b = bytes.ReplaceAll(b, []byte("\n"), []byte("\n#"))
b = bytes.ReplaceAll(b, []byte("#["), []byte("["))
return b, nil
}