Skip to content

Commit

Permalink
lib/jekyll/theme.rb passing rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
derekgottlieb committed May 28, 2016
1 parent 14c1ac3 commit b5cec7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ AllCops:
- lib/jekyll/renderer.rb
- lib/jekyll/site.rb
- lib/jekyll/static_file.rb
- lib/jekyll/theme.rb
- lib/jekyll/url.rb
- lib/jekyll/utils.rb
- lib/jekyll.rb
Expand Down
7 changes: 4 additions & 3 deletions lib/jekyll/theme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def sass_path

def configure_sass
return unless sass_path
require 'sass'
require "sass"
Sass.load_paths << sass_path
end

Expand All @@ -38,7 +38,7 @@ def path_for(folder)
return unless resolved_dir

path = Jekyll.sanitized_path(root, resolved_dir)
path if Dir.exists?(path)
path if Dir.exist?(path)
end

def realpath_for(folder)
Expand All @@ -50,7 +50,8 @@ def realpath_for(folder)
def gemspec
@gemspec ||= Gem::Specification.find_by_name(name)
rescue Gem::LoadError
raise Jekyll::Errors::MissingDependencyException, "The #{name} theme could not be found."
raise Jekyll::Errors::MissingDependencyException,
"The #{name} theme could not be found."
end
end
end

0 comments on commit b5cec7d

Please sign in to comment.