summaryrefslogtreecommitdiff
path: root/controller
diff options
context:
space:
mode:
Diffstat (limited to 'controller')
-rw-r--r--controller/JSONDB.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/controller/JSONDB.cpp b/controller/JSONDB.cpp
index 506fc425..6adc8a66 100644
--- a/controller/JSONDB.cpp
+++ b/controller/JSONDB.cpp
@@ -147,8 +147,6 @@ std::string JSONDB::_genPath(const std::string &n,bool create)
std::vector<std::string> pt(Utils::split(n.c_str(),"/","",""));
if (pt.size() == 0)
return std::string();
- if (pt.size() == 1)
- return pt[0];
std::string p(_basePath);
if (create) OSUtils::mkdir(p.c_str());