Skip to content

Commit

Permalink
make sure to return anything from wrapper class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mvoorberg committed Sep 27, 2018
1 parent 8408801 commit 66f3351
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,40 +35,40 @@ module.exports = {
return _restify.log = value;
},
get(...args) {
_restify.get(...args);
return _restify.get(...args);
},
head(...args) {
_restify.head(...args);
return _restify.head(...args);
},
post(...args) {
_restify.post(...args);
return _restify.post(...args);
},
put(...args) {
_restify.put(...args);
return _restify.put(...args);
},
patch(...args) {
_restify.patch(...args);
return _restify.patch(...args);
},
del(...args) {
_restify.del(...args);
return _restify.del(...args);
},
opts(...args) {
_restify.opts(...args);
return _restify.opts(...args);
},
pre(...args) {
_restify.pre(...args);
return _restify.pre(...args);
},
use(...args) {
_restify.use(...args);
return _restify.use(...args);
},
listen(...args) {
_restify.listen(...args);
return _restify.listen(...args);
},
close(...args) {
_restify.listen(...args);
return _restify.listen(...args);
},
on(...args) {
_restify.on(...args);
return _restify.on(...args);
}
};
return server;
Expand Down

0 comments on commit 66f3351

Please sign in to comment.