Remove tautology check

This commit is contained in:
Leonid Logvinov
2017-11-12 12:55:51 -05:00
parent f5608d2c94
commit d4dc428124

View File

@@ -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