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

Commit 1366b767 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

am: f790d6f5

* commit 'f790d6f5':
  dumpsys: fix error condition
parents 4db5d057 f790d6f5
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);