Skip to content

Commit

Permalink
Fix Layout/CommentIndentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dks17 committed Mar 25, 2018
1 parent c725900 commit 1502526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ Layout/AlignParameters:
- 'test/dummy/config/initializers/omniauth.rb'
- 'test/dummy/config/routes.rb'

# Offense count: 1
# Cop supports --auto-correct.
Layout/CommentIndentation:
Exclude:
- 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb'

# Offense count: 2
# Cop supports --auto-correct.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ def devise_mapping

def set_random_password
# set crazy password for new oauth users. this is only used to prevent
# access via email sign-in.
p = SecureRandom.urlsafe_base64(nil, false)
@resource.password = p
@resource.password_confirmation = p
# access via email sign-in.
p = SecureRandom.urlsafe_base64(nil, false)
@resource.password = p
@resource.password_confirmation = p
end

def create_auth_params
Expand Down

0 comments on commit 1502526

Please sign in to comment.