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

Commit 82442da6 authored by Roshan Pius's avatar Roshan Pius
Browse files

NetworkScoreManager: Address review comment

Review comment from ag/10154109.

Bug: 147390636
Test: Compiles, device boots up and connects to wifi networks.
Change-Id: I3c4b1e12d00ba083fe0b36ada29496c4dbc1746a
parent adaf2a30
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;