Removed redundant clause in conditional.
BUG=None
TEST=None
Change-Id: I9f61e480c09b10e7ff4c7bf5d0f3630e91b678ec
Reviewed-on: https://chromium-review.googlesource.com/192011
Tested-by: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
diff --git a/connection_manager.cc b/connection_manager.cc
index 88cbe57..49d19d4 100644
--- a/connection_manager.cc
+++ b/connection_manager.cc
@@ -202,8 +202,7 @@
if (device_policy->GetAllowedConnectionTypesForUpdate(&allowed_types)) {
// The update setting is enforced by the device policy.
- if ((type == kNetCellular &&
- !ContainsKey(allowed_types, shill::kTypeCellular))) {
+ if (!ContainsKey(allowed_types, shill::kTypeCellular)) {
LOG(INFO) << "Disabling updates over cellular connection as it's not "
"allowed in the device policy.";
return false;