summaryrefslogtreecommitdiff
path: root/lib/rbot/registry/tc.rb
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2014-03-06 14:20:27 +0100
committerMatthias H <apoc@sixserv.org>2014-03-06 14:20:27 +0100
commit6211ffb416592782bc8103ab29d63189623b187c (patch)
tree54147dbf97403c8fd2bd9c8df3022e0d200f4600 /lib/rbot/registry/tc.rb
parentf22c53c7ecbbdcd769ef92239a06e04ef3fff805 (diff)
[registry] small refactoring and added flush test
Diffstat (limited to 'lib/rbot/registry/tc.rb')
-rw-r--r--lib/rbot/registry/tc.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rbot/registry/tc.rb b/lib/rbot/registry/tc.rb
index 63bfdf78..4e248f42 100644
--- a/lib/rbot/registry/tc.rb
+++ b/lib/rbot/registry/tc.rb
@@ -36,6 +36,11 @@ class Registry
@registry.sync
end
+ def optimize
+ return unless @registry
+ @registry.optimize
+ end
+
end
end # Registry