mirror of https://github.com/jkjoy/sunpeiwen.git
24 lines
637 B
JavaScript
24 lines
637 B
JavaScript
|
/*
|
||
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
||
|
Author Tobias Koppers @sokra
|
||
|
*/
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
const ModuleFactory = require("./ModuleFactory");
|
||
|
|
||
|
/** @typedef {import("./ModuleFactory").ModuleFactoryCreateData} ModuleFactoryCreateData */
|
||
|
/** @typedef {import("./ModuleFactory").ModuleFactoryResult} ModuleFactoryResult */
|
||
|
|
||
|
class NullFactory extends ModuleFactory {
|
||
|
/**
|
||
|
* @param {ModuleFactoryCreateData} data data object
|
||
|
* @param {function((Error | null)=, ModuleFactoryResult=): void} callback callback
|
||
|
* @returns {void}
|
||
|
*/
|
||
|
create(data, callback) {
|
||
|
return callback();
|
||
|
}
|
||
|
}
|
||
|
module.exports = NullFactory;
|