Commit f1b22898 authored by Denis Kuznetsov's avatar Denis Kuznetsov Committed by Commit Bot

Remove unnecessary check for 0 batteries.

This check was made obsolete by crrev.com/c/1425726, but not removed
at that point. As a result, no further work is done on devices without
batteries.

Bug: 995808
Change-Id: I4a927b8f45723dccdfee198c789bed13003a0e12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1762240Reviewed-by: default avatarSergey Poromov <poromov@chromium.org>
Commit-Queue: Denis Kuznetsov <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688650}
parent 1fac8dbe
...@@ -1236,9 +1236,6 @@ void DeviceStatusCollector::SampleProbeData( ...@@ -1236,9 +1236,6 @@ void DeviceStatusCollector::SampleProbeData(
if (result.value().error() != runtime_probe::RUNTIME_PROBE_ERROR_NOT_SET) if (result.value().error() != runtime_probe::RUNTIME_PROBE_ERROR_NOT_SET)
return; return;
if (result.value().battery_size() == 0)
return;
for (const auto& battery : result.value().battery()) { for (const auto& battery : result.value().battery()) {
if (battery.name() != kGenericDeviceName) if (battery.name() != kGenericDeviceName)
continue; continue;
......
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