Rubocop: Style/SpaceInsideRangeLiteral

- Space inside range literal
This commit is contained in:
Pat Hawks 2016-01-04 12:06:40 -08:00
parent 6711234d5f
commit 04e635b10c
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ module Jekyll
# Returns the cleaned relative path of the document.
def cleaned_relative_path
@cleaned_relative_path ||=
relative_path[0 .. -extname.length - 1].sub(collection.relative_directory, "")
relative_path[0..-extname.length - 1].sub(collection.relative_directory, "")
end
# Determine whether the document is a YAML file.

View File

@ -106,7 +106,7 @@ module Jekyll
# Returns nothing.
def process(name)
self.ext = File.extname(name)
self.basename = name[0 .. -ext.length - 1]
self.basename = name[0..-ext.length - 1]
end
# Add any necessary layouts to this post