Comparison

mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2600:9ec8289f6bb2

mod_storage_xmlarchive: Break long line [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 06 Mar 2017 00:51:28 +0100
parent 2595:307ddebb72e1
child 2601:ba5757dc883d
comparison
equal deleted inserted replaced
2599:98b9b9ded29a 2600:9ec8289f6bb2
46 local first_of_day = not lfs.attributes(dm.getpath(username .. "@" .. day, module.host, self.store, "list")); 46 local first_of_day = not lfs.attributes(dm.getpath(username .. "@" .. day, module.host, self.store, "list"));
47 47
48 local offset = ok and err or 0; 48 local offset = ok and err or 0;
49 49
50 local id = day .. "-" .. hmac_sha256(username.."@"..day.."+"..offset, data, true):sub(-16); 50 local id = day .. "-" .. hmac_sha256(username.."@"..day.."+"..offset, data, true):sub(-16);
51 ok, err = dm.list_append(username.."@"..day, module.host, self.store, { id = id, when = dt.datetime(when), with = with, offset = offset, length = #data }); 51 ok, err = dm.list_append(username.."@"..day, module.host, self.store,
52 { id = id, when = dt.datetime(when), with = with, offset = offset, length = #data });
52 if ok and first_of_day then 53 if ok and first_of_day then
53 ok, err = dm.list_append(username, module.host, self.store, day); 54 ok, err = dm.list_append(username, module.host, self.store, day);
54 end 55 end
55 if not ok then 56 if not ok then
56 return nil, err; 57 return nil, err;