Corrected with rubocop cop 'Style/GlobalVars'.

This commit is contained in:
Thorsten Eckel 2015-05-08 12:47:25 +02:00
parent cad3bf8842
commit c1c35ce39e
2 changed files with 4 additions and 6 deletions

View file

@ -187,8 +187,6 @@ Style/Documentation:
Style/CommentIndentation:
Enabled: false
Style/GlobalVars:
Enabled: false
Lint/RescueException:
Enabled: false
Style/ClassVars:

View file

@ -76,10 +76,10 @@ if ARGV[0] == 'start' && @options[:d]
Daemons.daemonize
# create pid file
$daemon_pid = File.new( @options[:i].to_s, 'w' )
$daemon_pid.sync = true
$daemon_pid.puts(Process.pid.to_s)
$daemon_pid.close
daemon_pid = File.new( @options[:i].to_s, 'w' )
daemon_pid.sync = true
daemon_pid.puts(Process.pid.to_s)
daemon_pid.close
end
@clients = {}