Skip to content

Commit

Permalink
refactor: removed temporary variable in filters/all.js (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeljosedev committed Oct 4, 2021
1 parent a68cd73 commit d67987e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions filters/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,12 @@ function getModelClass(schemaName) {
filter.getModelClass = getModelClass;

function getRealPublisher([info, params, channel]) {
const pub = scsLib.getRealPublisher(info, params, channel);
return pub;
return scsLib.getRealPublisher(info, params, channel);
}
filter.getRealPublisher = getRealPublisher;

function getRealSubscriber([info, params, channel]) {
const pub = scsLib.getRealSubscriber(info, params, channel);
return pub;
return scsLib.getRealSubscriber(info, params, channel);
}
filter.getRealSubscriber = getRealSubscriber;

Expand Down Expand Up @@ -533,8 +531,7 @@ function springCloudVersion([info, params]) {
filter.springCloudVersion = springCloudVersion;

function stringify(obj) {
const str = JSON.stringify(obj, null, 2);
return str;
return JSON.stringify(obj, null, 2);
}
filter.stringify = stringify;

Expand Down

0 comments on commit d67987e

Please sign in to comment.