Removed useless check
authorWaqas Hussain <waqas20@gmail.com>
Sat, 22 Nov 2008 17:37:44 +0000 (22:37 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sat, 22 Nov 2008 17:37:44 +0000 (22:37 +0500)
util/jid.lua

index 2e40a3388d286a13de429b42b6712a61dff0b968..065f176f524e4a0c72ce6e48d72cacce16e687ee 100644 (file)
@@ -17,10 +17,8 @@ function bare(jid)
        local node, host = split(jid);
        if node and host then
                return node.."@"..host;
-       elseif host then
-               return host;
        end
-       return nil;
+       return host;
 end
 
 return _M;