diff options
author | JackLivio <jack@livio.io> | 2018-02-15 13:37:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-15 13:37:15 -0500 |
commit | a7d2216860e429f21f31dad9579526530abe60fd (patch) | |
tree | 24d0c9e5926102b31c62fd64ad36e424b439c51e | |
parent | defefde973be396de15655bc6db762d7a9eb2f06 (diff) | |
parent | a2edfc2ee8a1fee8aaf8c4a97e45a2a81b442353 (diff) | |
download | sdl_core-a7d2216860e429f21f31dad9579526530abe60fd.tar.gz |
Merge pull request #2016 from smartdevicelink/fix/policy_save_app_group_fix
Policy Fix: Remove redundant function call to SaveAppGroup
-rw-r--r-- | src/components/policy/policy_regular/src/sql_pt_representation.cc | 7 |
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, |