update
This commit is contained in:
1 parent
b701d9f094
commit
5d5c77897e
1 file changed
+1
-1
@@ -36,7 +36,7 @@ func Pretty(content []byte) (*Content, string, error) {
|
|||||||
|
|
||||||
kind := reflect.ValueOf(data).Kind()
|
kind := reflect.ValueOf(data).Kind()
|
||||||
|
|
||||||
if kind.String() == "invalid" {
|
if kind == reflect.Invalid {
|
||||||
return &Content{}, "", nil
|
return &Content{}, "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user