Skip to content

Commit

Permalink
fix rubocop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Dec 17, 2015
1 parent d6a592f commit d91dbcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/omniauth/auth_hash.rb
Expand Up @@ -40,7 +40,7 @@ def name
end

def name?
!!name # rubocop:disable DoubleNegation
!!name
end
alias_method :valid?, :name?

Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth/form.rb
@@ -1,5 +1,5 @@
module OmniAuth
class Form # rubocop:disable ClassLength
class Form
DEFAULT_CSS = File.read(File.expand_path('../form.css', __FILE__))

attr_accessor :options
Expand Down
2 changes: 1 addition & 1 deletion spec/omniauth/strategy_spec.rb
Expand Up @@ -607,7 +607,7 @@ def make_env(path = '/auth/test', props = {})

it 'responds with a provider-specific hash if one is set' do
OmniAuth.config.mock_auth[:test] = {
'uid' => 'abc',
'uid' => 'abc'
}

strategy.call make_env('/auth/test/callback')
Expand Down

0 comments on commit d91dbcc

Please sign in to comment.