summaryrefslogtreecommitdiff
path: root/bin/nickserver
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-09-23 11:07:32 +0200
committerAzul <azul@riseup.net>2017-09-23 16:53:27 +0200
commit40916407517f4bdb75a295caf29e02d4f403349b (patch)
tree8219567c0ecdf583fdd916594ec7915ab9eb2f19 /bin/nickserver
parent22c6c80310a8d3d3abbd1006598b4fbaec98ffd0 (diff)
style: rubocop mostly auto-correct
Diffstat (limited to 'bin/nickserver')
-rwxr-xr-xbin/nickserver4
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'