1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

[socks5] Remove stale null check

The method getLocalStreamHost() does no longer return 'null', hence
the null check is unnecessary.
This commit is contained in:
Florian Schmaus 2021-09-13 18:25:44 +02:00
parent 09710b3203
commit b57cf8375f

View file

@ -615,9 +615,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
if (annouceLocalStreamHost) { if (annouceLocalStreamHost) {
// add local proxy on first position if exists // add local proxy on first position if exists
List<StreamHost> localProxies = getLocalStreamHost(); List<StreamHost> localProxies = getLocalStreamHost();
if (localProxies != null) { streamHosts.addAll(localProxies);
streamHosts.addAll(localProxies);
}
} }
// query SOCKS5 proxies for network settings // query SOCKS5 proxies for network settings