Software /
code /
prosody
Changeset
5243:07e8256efcda
util.datamanager: Remove dead code path
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 14 Dec 2012 14:21:32 +0100 |
parents | 5238:0cc0359d8c39 |
children | 5244:775d98184acf |
files | util/datamanager.lua |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/util/datamanager.lua Tue Dec 11 23:40:30 2012 +0100 +++ b/util/datamanager.lua Fri Dec 14 14:21:32 2012 +0100 @@ -113,12 +113,9 @@ if username then if create then mkdir(mkdir(mkdir(data_path).."/"..host).."/"..datastore); end return format("%s/%s/%s/%s.%s", data_path, host, datastore, username, ext); - elseif host then + else if create then mkdir(mkdir(data_path).."/"..host); end return format("%s/%s/%s.%s", data_path, host, datastore, ext); - else - if create then mkdir(data_path); end - return format("%s/%s.%s", data_path, datastore, ext); end end