mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
parent
d9d6a2bf44
commit
a1be42825b
@ -36,7 +36,7 @@ func Pretty(content []byte) (*Content, string, error) {
|
||||
|
||||
kind := reflect.ValueOf(data).Kind()
|
||||
|
||||
if kind.String() == "invalid" {
|
||||
if kind == reflect.Invalid {
|
||||
return &Content{}, "", nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user