mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(markdown) rm " "
This commit is contained in:
parent
4a97a0f999
commit
b5eda738c9
1 changed files with 4 additions and 5 deletions
|
|
@ -22,12 +22,12 @@ module.exports = (name, request, callback) => {
|
|||
if (query === 'relative')
|
||||
name = DIR_ROOT + name;
|
||||
else
|
||||
name = root(name);
|
||||
|
||||
name = root(name);
|
||||
|
||||
fs.readFile(name, 'utf8', (error, data) => {
|
||||
if (error)
|
||||
return callback(error);
|
||||
|
||||
|
||||
parse(data, callback);
|
||||
});
|
||||
break;
|
||||
|
|
@ -36,7 +36,7 @@ module.exports = (name, request, callback) => {
|
|||
pullout(request, 'string', (error, data) => {
|
||||
if (error)
|
||||
return callback(error);
|
||||
|
||||
|
||||
parse(data, callback);
|
||||
});
|
||||
break;
|
||||
|
|
@ -62,4 +62,3 @@ function check(name, request, callback) {
|
|||
throw Error('callback should be function!');
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue