Autoformatter applied on all js files

This commit is contained in:
Luis Fernando Molina committed 2019-02-23 10:32:06 +01:00
1 parent 72c1017b20
commit c627aedcf6
59 files changed
+9087 -10892

No files matched your search

+41 -48
View File
@@ -1,71 +1,64 @@
function newWebFS() {
const MODULE_NAME = "Web FS";
const INFO_LOG = false;
const ERROR_LOG = true;
const logger = newWebDebugLog();
logger.fileName = MODULE_NAME;
function newWebFS () {
const MODULE_NAME = 'Web FS'
const INFO_LOG = false
const ERROR_LOG = true
const logger = newWebDebugLog()
logger.fileName = MODULE_NAME
/*
This is the module emulates the NodeJS 'fs'.
This is the module emulates the NodeJS 'fs'.
*/
var thisObject = {
readFileSync: readFileSync,
appendFileSync: appendFileSync,
mkdirSync: mkdirSync,
statSync: statSync,
readdir: readdir,
readdirSync: readdirSync,
readFile: readFile
};
var thisObject = {
readFileSync: readFileSync,
appendFileSync: appendFileSync,
mkdirSync: mkdirSync,
statSync: statSync,
readdir: readdir,
readdirSync: readdirSync,
readFile: readFile
}
return thisObject
return thisObject;
function readFileSync (pPath, pEncoding) {
switch (pPath) {
function readFileSync(pPath, pEncoding) {
case '': {
break
}
}
}
switch (pPath) {
case '': {
break;
}
}
}
function appendFileSync(pPath, pText) {
function appendFileSync (pPath, pText) {
/* We will ignore this since we can not and dont want to really write something on disk while we are at the browser. */
}
function readdir(pPath, callBackFunction) {
}
function readdir (pPath, callBackFunction) {
/* We will return an empty array of files. */
callBackFunction([]);
}
callBackFunction([])
}
function readdirSync(pPath, callBackFunction) {
function readdirSync (pPath, callBackFunction) {
}
}
function mkdirSync(pPath) {
function mkdirSync (pPath) {
/* Again we do nothing. */
}
}
function readFile(pPath) {
function readFile (pPath) {
/* Again we do nothing. */
}
}
function statSync(pPath) {
let stats
stats.size = 0;
return stats
}
}
function statSync (pPath) {
let stats
stats.size = 0
return stats
}
}