aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-12-14 14:21:32 +0100
committerKim Alvefur <zash@zash.se>2012-12-14 14:21:32 +0100
commit38daeec89e72cca0ecce87b2ae8e3166da29f585 (patch)
tree1a9cc1e08529d25d9a703499c10e7f863eb58681 /util/datamanager.lua
parentb1a53ef20d19985ca866feb386e63cc8282828b0 (diff)
downloadprosody-38daeec89e72cca0ecce87b2ae8e3166da29f585.tar.gz
prosody-38daeec89e72cca0ecce87b2ae8e3166da29f585.zip
util.datamanager: Remove dead code path
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r--util/datamanager.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 08d9d6af..2290d565 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -113,12 +113,9 @@ function getpath(username, host, datastore, ext, create)
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