lib/jekyll/page.rb in jekyll-3.1.0.pre.rc2 vs lib/jekyll/page.rb in jekyll-3.1.0.pre.rc3
- old
+ new
@@ -61,11 +61,10 @@
# The full path and filename of the post. Defined in the YAML of the post
# body.
#
# Returns the String permalink or nil if none has been set.
def permalink
- return nil if data.nil? || data['permalink'].nil?
- data['permalink']
+ data.nil? ? nil : data['permalink']
end
# The template of the permalink.
#
# Returns the template String.