From a2edfc2ee8a1fee8aaf8c4a97e45a2a81b442353 Mon Sep 17 00:00:00 2001 From: JackLivio Date: Thu, 15 Feb 2018 13:33:10 -0500 Subject: Policy Fix: Remove redundant function call to SaveAppGroup --- src/components/policy/policy_regular/src/sql_pt_representation.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/policy/policy_regular/src/sql_pt_representation.cc b/src/components/policy/policy_regular/src/sql_pt_representation.cc index 249171f689..9840a08b26 100644 --- a/src/components/policy/policy_regular/src/sql_pt_representation.cc +++ b/src/components/policy/policy_regular/src/sql_pt_representation.cc @@ -1864,12 +1864,7 @@ bool SQLPTRepresentation::SetDefaultPolicy(const std::string& app_id) { return false; } - bool ret = (GatherAppGroup(kDefaultId, &default_groups) && - SaveAppGroup(app_id, default_groups)); - if (ret) { - return SetIsDefault(app_id, true); - } - return false; + return SetIsDefault(app_id, true); } bool SQLPTRepresentation::SetIsDefault(const std::string& app_id, -- cgit v1.2.1