[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 d8b69fc..f7beef2 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 2a83097..d45aa12 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 1817a21..020c503 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;