diff options
author | azul <azul@riseup.net> | 2017-09-23 15:11:20 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-09-23 15:11:20 +0000 |
commit | fac140a8ff76e98c275194845125d4c97f4ba07b (patch) | |
tree | 08ffafb2c70935892e975704911080b9da84e391 /bin/nickserver | |
parent | 787287318c54b019a12ef79525c9f5b10d93724d (diff) | |
parent | 8ac6bb8492c9a3b9ec5d7b5bf2b35907a1f8c332 (diff) |
Merge branch 'rubocop' into 'master'
Style fixes based on Rubocop
See merge request leap/nickserver!19
Diffstat (limited to 'bin/nickserver')
-rwxr-xr-x | bin/nickserver | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/nickserver b/bin/nickserver index b77369c..4706d8b 100755 --- a/bin/nickserver +++ b/bin/nickserver @@ -4,9 +4,9 @@ # Nickserver key discovery daemon # -def load_local_gem(dir_path='../..') +def load_local_gem(dir_path = '../..') base_directory = File.expand_path(dir_path, File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__) - if !$LOAD_PATH.include? "#{base_directory}/lib" + unless $LOAD_PATH.include? "#{base_directory}/lib" if File.exist?("#{base_directory}/Gemfile.lock") ENV['BUNDLE_GEMFILE'] ||= "#{base_directory}/Gemfile" require 'bundler' |