From f7841d17139738627ea7f08575def787e2856d48 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Fri, 26 Apr 2013 20:59:54 +0200 Subject: [PATCH] Remove unnecessary self.tags.flatten! in favour of a one-line sol'n. --- lib/jekyll/post.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index d62c8e51..f75c6186 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -67,8 +67,7 @@ module Jekyll end def populate_tags - self.tags = self.data.pluralized_array("tag", "tags") - self.tags.flatten! + self.tags = self.data.pluralized_array("tag", "tags").flatten end # Get the full path to the directory containing the post files