Diff

plugins/mod_storage_none.lua @ 8060:71bdfdf6565d

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 04 Apr 2017 01:41:09 +0200
parent 8059:6a725b242804
child 8061:ef671d337577
line wrap: on
line diff
--- a/plugins/mod_storage_none.lua	Mon Apr 03 00:59:44 2017 +0200
+++ b/plugins/mod_storage_none.lua	Tue Apr 04 01:41:09 2017 +0200
@@ -1,8 +1,10 @@
+-- luacheck: ignore 212
+
 local driver = {};
 local driver_mt = { __index = driver };
 
 function driver:open(store, typ)
-	if typ and typ ~= "keyval" then
+	if typ and typ ~= "keyval" and typ ~= "archive" then
 		return nil, "unsupported-store";
 	end
 	return setmetatable({ store = store, type = typ }, driver_mt);
@@ -23,4 +25,12 @@
 	return true;
 end
 
+function driver:append()
+	return nil, "Storage disabled";
+end
+
+function driver:find()
+	return function () end, 0;
+end
+
 module:provides("storage", driver);