Skip to content

Commit

Permalink
Fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
envygeeks committed Nov 13, 2018
1 parent 6ef496c commit 9f03421
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -7,6 +7,7 @@ gemspec

sv = "~> 4.0.beta"
gem "sprockets", ENV["SPROCKETS_VERSION"] || sv, require: false
# rubocop:disable Bundler/DuplicatedGem
if ENV["JEKYLL_VERSION"]
gem "jekyll", ENV["JEKYLL_VERSION"], {
require: false,
Expand Down
3 changes: 2 additions & 1 deletion lib/jekyll/assets/plugins/proxy/optim.rb
Expand Up @@ -25,7 +25,8 @@ def initialize

def process
optimc = @env.asset_config[:plugins][:img][:optim]
return @file if !optimc
return @file unless optimc

preset = @args[:optim] == true ? :jekyll : @args[:optim].to_sym
raise UnknownPresetError, preset if preset != :jekyll && !optimc.key?(preset)
optim = ::ImageOptim.new(optimc[preset] || {})
Expand Down

0 comments on commit 9f03421

Please sign in to comment.