Refactor(ES6): Null Factory
This commit is contained in:
parent
0cb0bad1d9
commit
2a76e5ae6b
|
@ -2,9 +2,11 @@
|
|||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
function NullFactory() {}
|
||||
module.exports = NullFactory;
|
||||
"use strict";
|
||||
|
||||
NullFactory.prototype.create = function(data, callback) {
|
||||
return callback();
|
||||
};
|
||||
class NullFactory {
|
||||
create(data, callback) {
|
||||
return callback();
|
||||
}
|
||||
}
|
||||
module.exports = NullFactory;
|
||||
|
|
Loading…
Reference in New Issue