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

Commit f790d6f5 authored by Thierry Strudel's avatar Thierry Strudel Committed by android-build-merger
Browse files

Merge "dumpsys: fix error condition" into nyc-dev

am: eff45d06

* commit 'eff45d06':
  dumpsys: fix error condition
parents 501c67c5 eff45d06
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);