why there are so many mistakes in our repo (up to /cmd)

Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
This commit is contained in:
Aaron.L.Xu
2017-02-16 23:56:53 +08:00
parent 1de08ac417
commit ca2aeb5a3e
8 changed files with 8 additions and 8 deletions

View File

@ -22,7 +22,7 @@ func marshalMap(x interface{}) (map[string]interface{}, error) {
return nil, fmt.Errorf("expected a pointer to a struct, got %v", val.Kind())
}
if val.IsNil() {
return nil, fmt.Errorf("expxected a pointer to a struct, got nil pointer")
return nil, fmt.Errorf("expected a pointer to a struct, got nil pointer")
}
valElem := val.Elem()
if valElem.Kind() != reflect.Struct {