Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 159a8323 authored by Thierry Strudel's avatar Thierry Strudel
Browse files

dumpsys: fix error condition



Bug: 27809529
Change-Id: Ia2bdac83a367e1dd550ea7a5b50eac14d84f66b2
Signed-off-by: default avatarThierry Strudel <tstrudel@google.com>
parent 5b817549
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -138,13 +138,12 @@ int main(int argc, char* const argv[])
    }

    if ((skipServices && skippedServices.empty()) ||
            (!skipServices && !showListOnly && services.empty()) ||
            (showListOnly && (!services.empty() || !skippedServices.empty()))) {
        usage();
        return -1;
    }

    if (!skippedServices.empty() || showListOnly) {
    if (services.empty() || showListOnly) {
        // gets all services
        services = sm->listServices();
        services.sort(sort_func);