[Filesystem] Source code auto-formatting 79/214879/1
authorRafal Walczyna <r.walczyna@samsung.com>
Fri, 27 Sep 2019 08:33:30 +0000 (10:33 +0200)
committerRafal Walczyna <r.walczyna@samsung.com>
Fri, 27 Sep 2019 08:33:30 +0000 (10:33 +0200)
Used: ./code_format src/ -c -js

Change-Id: I1a27efa220445342ec42ef5327d06ac7bdd40ca9
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
src/filesystem/filesystem_instance.cc
src/filesystem/filesystem_manager.h
src/filesystem/js/common.js

index d8b69fc4035a231f62b3d07d179cb712ed6dbc76..f7beef21d8596d9417689d9f1af8896b781e61c1 100644 (file)
@@ -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) {
index 2a830977cf50a1a99022c255b64a385502b96ff2..d45aa1256e72a2e163997115c14037460756b941 100644 (file)
@@ -63,7 +63,7 @@ class FilesystemManager {
                      const std::function<void(FilesystemError)>& error_cb);
 
   void FetchAllStorages(const std::function<void(const common::VirtualStorages&)>& success_cb,
-                       const std::function<void(FilesystemError)>& error_cb);
+                        const std::function<void(FilesystemError)>& error_cb);
 
   void CreateFile(const std::string& path,
                   const std::function<void(const FilesystemStat&)>& success_cb,
index 1817a219e47dc436715f5fabc584806d4219b356..020c5038b05e9ca22da719373f87e9c1e8716f73 100644 (file)
@@ -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;