Skip to content

Commit 2a76e5a

Browse files
committed
Refactor(ES6): Null Factory
1 parent 0cb0bad commit 2a76e5a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

lib/NullFactory.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
MIT License http://www.opensource.org/licenses/mit-license.php
33
Author Tobias Koppers @sokra
44
*/
5-
function NullFactory() {}
6-
module.exports = NullFactory;
5+
"use strict";
76

8-
NullFactory.prototype.create = function(data, callback) {
9-
return callback();
10-
};
7+
class NullFactory {
8+
create(data, callback) {
9+
return callback();
10+
}
11+
}
12+
module.exports = NullFactory;

0 commit comments

Comments
 (0)