Skip to content

Commit 36222a0

Browse files
committed
Don't check state twice.
1 parent 8d93304 commit 36222a0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

s2a/src/main/java/io/grpc/s2a/S2AChannelCredentials.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import static com.google.common.base.Preconditions.checkArgument;
2020
import static com.google.common.base.Preconditions.checkNotNull;
21-
import static com.google.common.base.Preconditions.checkState;
2221
import static com.google.common.base.Strings.isNullOrEmpty;
2322

2423
import com.google.errorprone.annotations.CanIgnoreReturnValue;
@@ -109,8 +108,6 @@ public Builder setLocalUid(String localUid) {
109108
}
110109

111110
public ChannelCredentials build() throws IOException {
112-
checkState(!isNullOrEmpty(s2aAddress), "S2A address must not be null or empty.");
113-
checkNotNull(s2aChannelCredentials, "S2A channel credentials must not be null");
114111
ObjectPool<Channel> s2aChannelPool =
115112
SharedResourcePool.forResource(
116113
S2AHandshakerServiceChannel.getChannelResource(s2aAddress, s2aChannelCredentials));

0 commit comments

Comments
 (0)