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

Commit 854bd7c3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "NetworkScoreManager: Address review comment"

parents 092993a7 82442da6
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -75,13 +75,11 @@ public class NetworkKey implements Parcelable {
     *
     * @return A new {@link NetworkKey} instance or <code>null</code> if the given
     *         {@link ScanResult} instance is malformed.
     * @throws IllegalArgumentException
     * @throws NullPointerException
     */
    @Nullable
    public static NetworkKey createFromScanResult(@NonNull ScanResult result) {
        if (result == null) {
            throw new IllegalArgumentException("ScanResult cannot be null");
        }
        Objects.requireNonNull(result);
        final String ssid = result.SSID;
        if (TextUtils.isEmpty(ssid) || ssid.equals(WifiManager.UNKNOWN_SSID)) {
            return null;