mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
more thenify in node/utils/*
This commit is contained in:
parent
584e481430
commit
5ef4a2d1d5
5 changed files with 26 additions and 21 deletions
|
@ -5,8 +5,9 @@
|
|||
var log4js = require('log4js');
|
||||
var settings = require('./Settings');
|
||||
var spawn = require('child_process').spawn;
|
||||
const thenify = require("thenify").withCallback;
|
||||
|
||||
exports.tidy = function(srcFile, callback) {
|
||||
exports.tidy = thenify(function(srcFile, callback) {
|
||||
var logger = log4js.getLogger('TidyHtml');
|
||||
|
||||
// Don't do anything if Tidy hasn't been enabled
|
||||
|
@ -38,4 +39,4 @@ exports.tidy = function(srcFile, callback) {
|
|||
return callback('Tidy died with exit code ' + code);
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue