Fix gofmt and golint issues (#90)
This commit is contained in:
committed by
Thomas Pelletier
parent
e6271032cc
commit
bfe4a7e160
@@ -1,6 +1,7 @@
|
||||
// Tools to convert a TomlTree to different representations
|
||||
package toml
|
||||
|
||||
// Tools to convert a TomlTree to different representations
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
@@ -126,7 +127,7 @@ func (t *TomlTree) ToMap() map[string]interface{} {
|
||||
for k, v := range t.values {
|
||||
switch node := v.(type) {
|
||||
case []*TomlTree:
|
||||
array := make([]interface{}, 0)
|
||||
var array []interface{}
|
||||
for _, item := range node {
|
||||
array = append(array, item.ToMap())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user