diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-10 06:57:41 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-10 06:57:41 +0800 |
commit | 322e054f1ab3f1325c203f61f1edb2f56867fc6d (patch) | |
tree | b7eab25db432925c874af635215e5fa8ab5d4138 | |
parent | 7f606e1e6493b36ec4fbfd738a0e98ce89afef2d (diff) | |
download | dexon-0x-contracts-322e054f1ab3f1325c203f61f1edb2f56867fc6d.tar.gz dexon-0x-contracts-322e054f1ab3f1325c203f61f1edb2f56867fc6d.tar.zst dexon-0x-contracts-322e054f1ab3f1325c203f61f1edb2f56867fc6d.zip |
comment improvements
-rw-r--r-- | src/order_watcher/order_state_watcher.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts index 8eb936077..f6ce4edb7 100644 --- a/src/order_watcher/order_state_watcher.ts +++ b/src/order_watcher/order_state_watcher.ts @@ -73,15 +73,15 @@ export class OrderStateWatcher { assert.doesConformToSchema('orderHash', orderHash, schemas.orderHashSchema); const signedOrder = this._orders[orderHash]; if (_.isUndefined(signedOrder)) { - return; + return; // noop } delete this._orders[orderHash]; this._dependentOrderHashes[signedOrder.maker][signedOrder.makerTokenAddress].delete(orderHash); // We currently do not remove the maker/makerToken keys from the mapping when all orderHashes removed } /** - * Starts an orderStateWatcher subscription. The callback will be notified every time a watched order's - * backing blockchain state has changed. This is a call-to-action for the caller to re-validate the order + * Starts an orderStateWatcher subscription. The callback will be called every time a watched order's + * backing blockchain state has changed. This is a call-to-action for the caller to re-validate the order. * @param callback Receives the orderHash of the order that should be re-validated, together. * with all the order-relevant blockchain state needed to re-validate the order * @param numConfirmations Number of confirmed blocks deeps you want to run the orderWatcher from. Passing |