Skip to content

Commit 5e37bb1

Browse files
authored
Merge pull request #2 from cometkim/fix-warnings
Fix a few warnings
2 parents 41a3523 + 6792c57 commit 5e37bb1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opengraph/opengraph.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ func (og *OpenGraph) ProcessHTML(buffer io.Reader) error {
131131
og.ProcessMeta(m)
132132
}
133133
}
134-
return nil
135134
}
136135

137136
// ProcessMeta processes meta attributes and adds them to Open Graph structure if they are suitable for that
@@ -248,7 +247,7 @@ func (og *OpenGraph) processArticleMeta(metaAttrs map[string]string) {
248247
if err == nil {
249248
og.Article.ExpirationTime = &t
250249
}
251-
case "article:secttion":
250+
case "article:section":
252251
og.Article.Section = metaAttrs["content"]
253252
case "article:tag":
254253
og.Article.Tags = append(og.Article.Tags, metaAttrs["content"])

0 commit comments

Comments
 (0)