From b9e170a0bcedf5254bc1b8aecfe725d9b8612e55 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 31 Aug 2021 18:46:42 +0200 Subject: [PATCH] Deepscan bug fixed --- .../Social-Trading/NT/Modules/Queries/Events.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Projects/Social-Trading/NT/Modules/Queries/Events.js b/Projects/Social-Trading/NT/Modules/Queries/Events.js index 0565bf027..2cee66514 100644 --- a/Projects/Social-Trading/NT/Modules/Queries/Events.js +++ b/Projects/Social-Trading/NT/Modules/Queries/Events.js @@ -78,11 +78,9 @@ exports.newSocialTradingModulesQueriesEvents = function newSocialTradingModulesQ /* The context is a User Profile */ - if (emitterUserProfile !== undefined) { - if (emitterUserProfile.userProfileId === thisObject.profile.userProfileId) { - addToResponse(event) - return - } + if (emitterUserProfile.userProfileId === thisObject.profile.userProfileId) { + addToResponse(event) + return } if (targetUserProfile !== undefined) { if (targetUserProfile.userProfileId === thisObject.profile.userProfileId) { @@ -115,11 +113,9 @@ exports.newSocialTradingModulesQueriesEvents = function newSocialTradingModulesQ /* The context is a User Profile */ - if (emitterUserProfile !== undefined) { - if (thisObject.profile.following.get(emitterUserProfile.userProfileId) !== undefined) { - addToResponse(event) - return - } + if (thisObject.profile.following.get(emitterUserProfile.userProfileId) !== undefined) { + addToResponse(event) + return } if (targetUserProfile !== undefined) { if (thisObject.profile.following.get(targetUserProfile.userProfileId) !== undefined) {