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

Commit a1468188 authored by Hall Liu's avatar Hall Liu
Browse files

Move misplaced return statement

In CallerInfoLookupHelper, if mQueryEntries already contains an entry
for a query, there's no need to issue the query again. The return
statement was mistakenly placed one level too low -- move it to the
correct place.

Change-Id: I096949888c56dd13dcd51d10f6baf9bf96d5f4a8
Fixes: 119298336
Test: manual
parent 13a230eb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -108,8 +108,9 @@ public class CallerInfoLookupHelper {
                    Log.i(this, "There is a previously incomplete query for handle %s. Adding to " +
                            "listeners for this query.", Log.piiHandle(handle));
                    info.listeners.add(listener);
                    return;
                }
                // Since we have a pending query for this handle already, don't re-query it.
                return;
            } else {
                CallerInfoQueryInfo info = new CallerInfoQueryInfo();
                info.listeners.add(listener);