aboutsummaryrefslogtreecommitdiffstats
path: root/util/jid.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-22 22:37:44 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-22 22:37:44 +0500
commitd2db971613c66f265f63a9c2543ad2cffab65dcb (patch)
treea451f4cadf20cb5e0f47836727f0236923be8e0b /util/jid.lua
parent3b1d2b2963e15660f198804f2f19d10ba0380af2 (diff)
downloadprosody-d2db971613c66f265f63a9c2543ad2cffab65dcb.tar.gz
prosody-d2db971613c66f265f63a9c2543ad2cffab65dcb.zip
Removed useless check
Diffstat (limited to 'util/jid.lua')
-rw-r--r--util/jid.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/jid.lua b/util/jid.lua
index 2e40a338..065f176f 100644
--- a/util/jid.lua
+++ b/util/jid.lua
@@ -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;