summaryrefslogtreecommitdiff
path: root/lib/rbot/registry/sqlite.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/registry/sqlite.rb')
-rw-r--r--lib/rbot/registry/sqlite.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rbot/registry/sqlite.rb b/lib/rbot/registry/sqlite.rb
index 89e7d78c..1af5d242 100644
--- a/lib/rbot/registry/sqlite.rb
+++ b/lib/rbot/registry/sqlite.rb
@@ -29,10 +29,9 @@ class Registry
@registry
end
- def flush
- end
-
def optimize
+ return unless @registry
+ @registry.execute('VACUUM')
end
def [](key)