From e1746ac23bfcd679d19a923438ad434f602f05c4 Mon Sep 17 00:00:00 2001 From: Matthias H Date: Tue, 18 Feb 2014 22:54:46 +0100 Subject: [registry] removed temp logging --- lib/rbot/registry/dbm.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3