File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -429,20 +429,16 @@ Error NetSocketUnix::bind(NetSocket::Address p_addr) {
429429 ERR_FAIL_COND_V (_family != p_addr.get_family (), ERR_INVALID_PARAMETER);
430430 switch (p_addr.get_family ()) {
431431 case Family::INET: {
432- Error res = _inet_bind (p_addr.ip (), p_addr.port ());
433- ERR_FAIL_COND_V (res != OK, res);
434- } break ;
432+ return _inet_bind (p_addr.ip (), p_addr.port ());
433+ }
435434 case Family::UNIX: {
436435 _unix_path = p_addr.get_path ();
437- Error res = _unix_bind (_unix_path);
438- ERR_FAIL_COND_V (res != OK, res);
439- } break ;
436+ return _unix_bind (_unix_path);
437+ }
440438 case Family::NONE:
441439 default :
442440 return ERR_INVALID_PARAMETER;
443441 }
444-
445- return OK;
446442}
447443
448444Error NetSocketUnix::listen (int p_max_pending) {
You can’t perform that action at this time.
0 commit comments