Former-commit-id: b701d9f0942cc7d52f4b26e433f7d98ddd64f85d
This commit is contained in:
Henrique Dias
2017-01-04 18:17:47 +00:00
parent 543c43517d
commit d9d6a2bf44
3 changed files with 8 additions and 1 deletions

View File

@@ -36,6 +36,10 @@ func Pretty(content []byte) (*Content, string, error) {
kind := reflect.ValueOf(data).Kind()
if kind.String() == "invalid" {
return &Content{}, "", nil
}
object := new(Block)
object.Type = objectType
object.Name = mainName