From: Rafal Walczyna Date: Fri, 27 Sep 2019 08:33:30 +0000 (+0200) Subject: [Filesystem] Source code auto-formatting X-Git-Tag: submit/tizen_3.0/20200610.123619~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F214879%2F1;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Filesystem] Source code auto-formatting Used: ./code_format src/ -c -js Change-Id: I1a27efa220445342ec42ef5327d06ac7bdd40ca9 Signed-off-by: Rafal Walczyna --- diff --git a/src/filesystem/filesystem_instance.cc b/src/filesystem/filesystem_instance.cc index d8b69fc..f7beef2 100644 --- a/src/filesystem/filesystem_instance.cc +++ b/src/filesystem/filesystem_instance.cc @@ -513,7 +513,7 @@ void FilesystemInstance::FileStatSync(const picojson::value& args, picojson::obj } void FilesystemInstance::FilesystemFetchAllStorages(const picojson::value& args, - picojson::object& out) { + picojson::object& out) { ScopeLogger(); auto onSuccess = [&](const common::VirtualStorages& result) { diff --git a/src/filesystem/filesystem_manager.h b/src/filesystem/filesystem_manager.h index 2a83097..d45aa12 100644 --- a/src/filesystem/filesystem_manager.h +++ b/src/filesystem/filesystem_manager.h @@ -63,7 +63,7 @@ class FilesystemManager { const std::function& error_cb); void FetchAllStorages(const std::function& success_cb, - const std::function& error_cb); + const std::function& error_cb); void CreateFile(const std::string& path, const std::function& success_cb, diff --git a/src/filesystem/js/common.js b/src/filesystem/js/common.js index 1817a21..020c503 100644 --- a/src/filesystem/js/common.js +++ b/src/filesystem/js/common.js @@ -271,17 +271,17 @@ var commonFS_ = (function() { var foundVirtualRoot; var foundVirtualPath; for (var virtual_root in cacheVirtualToReal) { - var real_root_path = cacheVirtualToReal[virtual_root].path - if(_virtualPath.indexOf(real_root_path, 0) === 0) { + var real_root_path = cacheVirtualToReal[virtual_root].path; + if (_virtualPath.indexOf(real_root_path, 0) === 0) { var currentLength = real_root_path.length; - if(currentLength > foundLength) { - foundLength = currentLength; - foundVirtualRoot = virtual_root; - foundVirtualPath = real_root_path + if (currentLength > foundLength) { + foundLength = currentLength; + foundVirtualRoot = virtual_root; + foundVirtualPath = real_root_path; } } } - if(foundLength != 0) { + if (foundLength != 0) { return _virtualPath.replace(foundVirtualPath, foundVirtualRoot); } return _virtualPath;