Skip to content

Commit

Permalink
satisfy rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
mtnstar committed Oct 2, 2017
1 parent 877da4e commit 22330e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/controllers/logins_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

class LoginsController < ApplicationController

DEFAULT_PARAMS = %i(utf8, authenticity_token, commit, locale).freeze

before_action :redirect_if_ldap_user, only: %i(show_update_password update_password)
before_action :redirect_if_ldap_user, only: %i[show_update_password update_password]
before_action :redirect_if_logged_in, only: :login

def login; end
Expand Down
6 changes: 3 additions & 3 deletions bin/yarn
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
VENDOR_PATH = File.expand_path('..', __dir__)
Dir.chdir(VENDOR_PATH) do
begin
exec "yarnpkg #{ARGV.join(" ")}"
exec "yarnpkg #{ARGV.join(' ')}"
rescue Errno::ENOENT
$stderr.puts "Yarn executable was not detected in the system."
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
$stderr.puts 'Yarn executable was not detected in the system.'
$stderr.puts 'Download Yarn at https://yarnpkg.com/en/docs/install'
exit 1
end
end

0 comments on commit 22330e4

Please sign in to comment.