Skip to content

TagSpaces is an offline, open source, document manager with tagging support

correcting code style

uggrockf47513313156
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.js
index 0981868d2..b66daf33d 100644
--- a/data/cordova/cordova.api.js
+++ b/data/cordova/cordova.api.js
@@ -820,8 +820,8 @@ define(function(require, exports, module) {
);
};
- var createMetaFolder = function (dirPath) {
- if (dirPath.lastIndexOf(TSCORE.metaFolder) >= dirPath.length-TSCORE.metaFolder.length) {
+ var createMetaFolder = function(dirPath) {
+ if (dirPath.lastIndexOf(TSCORE.metaFolder) >= dirPath.length - TSCORE.metaFolder.length) {
console.log("Can not create meta folder in a meta folder");
return;
}
@@ -831,14 +831,14 @@ define(function(require, exports, module) {
exclusive: false
},
function(dirEntry) {
- console.log("Metafolder created: "+metaDirPath);
+ console.log("Metafolder created: " + metaDirPath);
},
function(error) {
TSCORE.hideLoadingAnimation();
console.error("Creating meta folder failed for " + dirPath + " error code: " + error.code);
}
);
- }
+ };
var copyFile = function(filePath, newFilePath) {
filePath = normalizePath(filePath);
diff --git a/data/js/directories.ui.js b/data/js/directories.ui.js
index 3812fa75d..7d635ee64 100644
--- a/data/js/directories.ui.js
+++ b/data/js/directories.ui.js
@@ -368,7 +368,7 @@ define(function(require, exports, module) {
TSCORE.currentPath = directoryPath;
TSCORE.Meta.getDirectoryMetaInformation(function() {
TSCORE.IO.listDirectory(directoryPath);
- if(TSCORE.IO.createMetaFolder && TSCORE.PRO) {
+ if (TSCORE.IO.createMetaFolder && TSCORE.PRO) {
TSCORE.IO.createMetaFolder(directoryPath);
}
});
diff --git a/data/node-webkit/node-webkit.api.js b/data/node-webkit/node-webkit.api.js
index 584b78a87..9d94d7741 100644
--- a/data/node-webkit/node-webkit.api.js
+++ b/data/node-webkit/node-webkit.api.js
@@ -277,8 +277,8 @@ define(function(require, exports, module) {
});
};
- var createMetaFolder = function (dirPath) {
- if (dirPath.lastIndexOf(TSCORE.metaFolder) >= dirPath.length-TSCORE.metaFolder.length) {
+ var createMetaFolder = function(dirPath) {
+ if (dirPath.lastIndexOf(TSCORE.metaFolder) >= dirPath.length - TSCORE.metaFolder.length) {
console.log("Can not create meta folder in a meta folder");
return;
}
@@ -293,7 +293,7 @@ define(function(require, exports, module) {
}
createDirectory(metaDirPath, true);
});
- }
+ };
var copyFile = function(sourceFilePath, targetFilePath) {
console.log("Copy file: " + sourceFilePath + " to " + targetFilePath);