Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp

Issue 2267403006: Remove redundant IsEmpty checks after calling toV8() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
index fa81e2e12f2c46e21badf8b16895d60e4e598abf..3de1fbc39ba77cd288e31f14ab999e24abd5b311 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
@@ -103,9 +103,6 @@ NodeFilter* toNodeFilter(v8::Local<v8::Value> callback, v8::Local<v8::Object> cr
NodeFilter* filter = NodeFilter::create();
v8::Local<v8::Value> filterWrapper = toV8(filter, creationContext, scriptState->isolate());
- if (filterWrapper.IsEmpty())
- return nullptr;
-
NodeFilterCondition* condition = V8NodeFilterCondition::create(callback, filterWrapper.As<v8::Object>(), scriptState);
filter->setCondition(condition);

Powered by Google App Engine
This is Rietveld 408576698