summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-02-15 13:33:10 -0500
committerJackLivio <jack@livio.io>2018-02-15 13:33:10 -0500
commita2edfc2ee8a1fee8aaf8c4a97e45a2a81b442353 (patch)
tree24d0c9e5926102b31c62fd64ad36e424b439c51e
parent492dadebdf1debd9cbd3e867e4f21452b73e3846 (diff)
downloadsdl_core-a2edfc2ee8a1fee8aaf8c4a97e45a2a81b442353.tar.gz
Policy Fix: Remove redundant function call to SaveAppGroup
-rw-r--r--src/components/policy/policy_regular/src/sql_pt_representation.cc7
1 files changed, 1 insertions, 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,