summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-05-25 12:55:09 +0200
committerAzul <azul@riseup.net>2016-05-25 12:55:09 +0200
commit62e27158a4fda768377df17430d154c2aae03f5d (patch)
tree7f47dd1db6163d898d62c2af47800c31c28eda83 /lib
parentb883fa9e91ffd7c526a17f37df54ef63c5c6a4b8 (diff)
rubocop: fix deprecated class methods
Diffstat (limited to 'lib')
-rw-r--r--lib/nickserver/daemon.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nickserver/daemon.rb b/lib/nickserver/daemon.rb
index a7326d9..7d0f02a 100644
--- a/lib/nickserver/daemon.rb
+++ b/lib/nickserver/daemon.rb
@@ -105,7 +105,7 @@ module Nickserver
def kill_pid
file = Config.pid_file
- if File.exists?(file)
+ if File.exist?(file)
pid = pid_from_file(file)
if pid
Process.kill('TERM', pid)