Commit 9bf3c130 authored by Tarun Bansal's avatar Tarun Bansal Committed by Commit Bot

Remove the redundant check for document nullptr in NetInfo API

Change-Id: I014ee6f6dfd465f6ea855c7ff8f55acc0d87d629
Reviewed-on: https://chromium-review.googlesource.com/1091634
Commit-Queue: Tarun Bansal <tbansal@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565492}
parent 1c3c0df6
......@@ -26,8 +26,8 @@ Settings* GetSettings(ExecutionContext* execution_context) {
return nullptr;
Document* document = ToDocument(execution_context);
if (!document)
return nullptr;
// |document| is guaranteed to be non-null since |execution_context| is
// non-null.
return document->GetSettings();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment