Skip to content

Commit ee1f309

Browse files
committed
fix refactoring
1 parent 5f5670f commit ee1f309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SocketModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ PTuple doGeneric(VirtualFrame frame, String ip_address) {
308308
Object hostname = PNone.NONE;
309309
Object[] strAdresses = new Object[adresses.length];
310310
for (int i = 0; i < adresses.length; i++) {
311-
if (hostname == null) {
311+
if (hostname == PNone.NONE) {
312312
hostname = getCanonicalHostName(adresses[i]);
313313
}
314314
strAdresses[i] = getHostAddress(adresses[i]);

0 commit comments

Comments
 (0)