Skip to content

Commit 4fbece6

Browse files
committed
Remove redundant check for API level >= 23.
1 parent 0dc42a6 commit 4fbece6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cronet/src/main/java/io/grpc/cronet/CronetChannelBuilder.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import static io.grpc.internal.GrpcUtil.DEFAULT_MAX_MESSAGE_SIZE;
2222

2323
import android.net.Network;
24-
import android.os.Build;
2524
import com.google.common.annotations.VisibleForTesting;
2625
import com.google.common.base.Preconditions;
2726
import com.google.common.util.concurrent.MoreExecutors;
@@ -340,9 +339,7 @@ public BidirectionalStream.Builder newBidirectionalStreamBuilder(
340339
builder.setTrafficStatsUid(trafficStatsUid);
341340
}
342341
if (network != null) {
343-
if (Build.VERSION.SDK_INT >= 23) {
344-
builder.bindToNetwork(network.getNetworkHandle());
345-
}
342+
builder.bindToNetwork(network.getNetworkHandle());
346343
}
347344
return builder;
348345
}

0 commit comments

Comments
 (0)