update_engine: Simplify logic in dbus_service (get p2p enabled status).
This unifies the paths returning default vs set values, resulting in
a logic that's more compact and comprehensible.
BUG=None
TEST=Unit tests.
Change-Id: I7580088eaebdefcddc1e3804fad148ccec948ed8
Reviewed-on: https://chromium-review.googlesource.com/225503
Reviewed-by: David Zeuthen <zeuthen@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
1 file changed