aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 01:55:51 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commitd4dc428124a210cc6b8e1c50527a08e902bfadd0 (patch)
tree77867e84c46165da5e2bccac1b481ba4516349db
parentf5608d2c94bcee05a76ef102f235f5e860820567 (diff)
downloaddexon-sol-tools-d4dc428124a210cc6b8e1c50527a08e902bfadd0.tar.gz
dexon-sol-tools-d4dc428124a210cc6b8e1c50527a08e902bfadd0.tar.zst
dexon-sol-tools-d4dc428124a210cc6b8e1c50527a08e902bfadd0.zip
Remove tautology check
-rw-r--r--src/order_watcher/order_state_watcher.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts
index 685d67455..e6250cef5 100644
--- a/src/order_watcher/order_state_watcher.ts
+++ b/src/order_watcher/order_state_watcher.ts
@@ -225,9 +225,6 @@ export class OrderStateWatcher {
private async _emitRevalidateOrdersAsync(orderHashes: string[]): Promise<void> {
for (const orderHash of orderHashes) {
const signedOrder = this._orderByOrderHash[orderHash] as SignedOrder;
- if (_.isUndefined(this._orderStateUtils)) {
- break; // Unsubscribe was called
- }
const orderState = await this._orderStateUtils.getOrderStateAsync(signedOrder);
if (_.isUndefined(this._callbackIfExistsAsync)) {
break; // Unsubscribe was called