Skip to content

Commit

Permalink
fix: use this.constuctor.name as type
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Aug 27, 2016
1 parent 6647172 commit b5f4798
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions decode-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ class DecodeJSONInterceptor extends Interceptor {
return 'decode-json';
}

get type() {
return DecodeJSONInterceptor.name;
}

receive(request, args) {
return new Promise((fullfilled, rejected) =>
request.payload.pipe(pcs((err, data) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/decode_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function dummyEndpoint(name) {
toString() {
return this.name;
},
"step": logger
step: logger
};
}

Expand Down

0 comments on commit b5f4798

Please sign in to comment.