diff options
-rw-r--r-- | lib/rbot/registry/dbm.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/rbot/registry/dbm.rb b/lib/rbot/registry/dbm.rb index fb684d5f..7c309c7f 100644 --- a/lib/rbot/registry/dbm.rb +++ b/lib/rbot/registry/dbm.rb @@ -84,13 +84,7 @@ class Registry end def registry - #debug 'access registry (cached)' if @registry - #@registry ||= DBM.open(@filename, 0666, DBM::WRCREAT) - if not @registry - debug 'open registry, ' + @filename - @registry = DBM.open(@filename, 0666, DBM::WRCREAT) - end - @registry + @registry ||= DBM.open(@filename, 0666, DBM::WRCREAT) end def flush |