diff --git a/spec/webview-spec.js b/spec/webview-spec.js index dac9eb951a24..5f251284c4e3 100644 --- a/spec/webview-spec.js +++ b/spec/webview-spec.js @@ -783,8 +783,7 @@ describe(' tag', function () { let requestId = null let activeMatchOrdinal = [] const listener = function (e) { - if (!e.result.finalUpdate) - return + if (!e.result.finalUpdate) return assert.equal(e.result.requestId, requestId) assert.equal(e.result.matches, 3) activeMatchOrdinal.push(e.result.activeMatchOrdinal)