diff options
author | JackLivio <jack@livio.io> | 2018-02-15 13:33:10 -0500 |
---|---|---|
committer | JackLivio <jack@livio.io> | 2018-02-15 13:33:10 -0500 |
commit | a2edfc2ee8a1fee8aaf8c4a97e45a2a81b442353 (patch) | |
tree | 24d0c9e5926102b31c62fd64ad36e424b439c51e /src/components | |
parent | 492dadebdf1debd9cbd3e867e4f21452b73e3846 (diff) | |
download | sdl_core-a2edfc2ee8a1fee8aaf8c4a97e45a2a81b442353.tar.gz |
Policy Fix: Remove redundant function call to SaveAppGroup
Diffstat (limited to 'src/components')
-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, |