From 5d5c77897e04cbfcb5cf6652dc2d51ed3f192b8c Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 4 Jan 2017 18:19:16 +0000 Subject: [PATCH] update --- frontmatter/frontmatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontmatter/frontmatter.go b/frontmatter/frontmatter.go index 65839abb..1638c39b 100644 --- a/frontmatter/frontmatter.go +++ b/frontmatter/frontmatter.go @@ -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 }