mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
ImportHandler: flatten code
No functional changes
This commit is contained in:
parent
e8558e3497
commit
6727a77073
1 changed files with 7 additions and 7 deletions
|
@ -141,14 +141,14 @@ exports.doImport = function(req, res, padId)
|
||||||
if(headCount >= 10){
|
if(headCount >= 10){
|
||||||
apiLogger.warn("Direct database Import attempt of a pad that already has content, we wont be doing this")
|
apiLogger.warn("Direct database Import attempt of a pad that already has content, we wont be doing this")
|
||||||
return callback("padHasData");
|
return callback("padHasData");
|
||||||
}else{
|
}
|
||||||
|
|
||||||
fs.readFile(srcFile, "utf8", function(err, _text){
|
fs.readFile(srcFile, "utf8", function(err, _text){
|
||||||
directDatabaseAccess = true;
|
directDatabaseAccess = true;
|
||||||
importEtherpad.setPadRaw(padId, _text, function(err){
|
importEtherpad.setPadRaw(padId, _text, function(err){
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
callback();
|
callback();
|
||||||
|
|
Loading…
Reference in a new issue