diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-07 13:27:17 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-07 13:27:17 -0800 |
| commit | a454a37a6e171f2a9101680de4c2dfda2c2246f5 (patch) | |
| tree | 0385d5cdae67f1a804839b2fad0c1d393284f7ad /controller | |
| parent | a78d7311a64316a78358bfbb4e8e798778a9d7f7 (diff) | |
| download | infinitytier-a454a37a6e171f2a9101680de4c2dfda2c2246f5.tar.gz infinitytier-a454a37a6e171f2a9101680de4c2dfda2c2246f5.zip | |
Self test JSONDB.
Diffstat (limited to 'controller')
| -rw-r--r-- | controller/JSONDB.cpp | 2 |
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()); |
