Return after checking for an error and add an explanatory comment
This commit is contained in:
		@@ -221,8 +221,9 @@ export class OrderStateWatcher {
 | 
				
			|||||||
                this._callbackIfExists(err);
 | 
					                this._callbackIfExists(err);
 | 
				
			||||||
                this.unsubscribe();
 | 
					                this.unsubscribe();
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        const log = logIfExists as LogEvent;
 | 
					        const log = logIfExists as LogEvent; // At this moment we are sure that no error occured and log is defined.
 | 
				
			||||||
        const maybeDecodedLog = this._abiDecoder.tryToDecodeLogOrNoop(log);
 | 
					        const maybeDecodedLog = this._abiDecoder.tryToDecodeLogOrNoop(log);
 | 
				
			||||||
        const isLogDecoded = !_.isUndefined((maybeDecodedLog as LogWithDecodedArgs<any>).event);
 | 
					        const isLogDecoded = !_.isUndefined((maybeDecodedLog as LogWithDecodedArgs<any>).event);
 | 
				
			||||||
        if (!isLogDecoded) {
 | 
					        if (!isLogDecoded) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user