Skip to content

Commit 3eec767

Browse files
committed
dev: make the module.exports an object
1 parent 4bb864e commit 3eec767

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ var util = require('./lib/util');
55
var repl = null;
66
var instances = [];
77

8-
// add the instance to the repl and start it
9-
exports = module.exports = function (_gulp_) {
10-
return exports.start(_gulp_);
11-
};
8+
exports = module.exports = {};
129

1310
// get the instance properties used by the REPL
1411
exports.get = function (gulp) {
@@ -60,7 +57,7 @@ exports.remove = function (_gulp_) {
6057

6158
// create a readline instance if there is none
6259
exports.start = function (_gulp_) {
63-
exports.add(_gulp_);
60+
this.add(_gulp_);
6461

6562
// only create one repl listening on stdin
6663
if (repl) { return repl; }

0 commit comments

Comments
 (0)