diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2013-08-09 17:48:21 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2013-08-09 17:48:21 +0200 |
commit | 1d833bb80779ed9c9e1d7ec6c7fab231ebf48182 (patch) | |
tree | 8031ff6fd0e32a78a157f8e6542a954e7e634c5d /core/moduleapi.lua | |
parent | 96ec63e3c3bbd7e5f6056a5eeeaaa292b4b4da8d (diff) | |
download | prosody-1d833bb80779ed9c9e1d7ec6c7fab231ebf48182.tar.gz prosody-1d833bb80779ed9c9e1d7ec6c7fab231ebf48182.zip |
Remove all trailing whitespace
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r-- | core/moduleapi.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index a4ba9bc8..6e857531 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -1,7 +1,7 @@ -- Prosody IM -- Copyright (C) 2008-2012 Matthew Wild -- Copyright (C) 2008-2012 Waqas Hussain --- +-- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- @@ -74,7 +74,7 @@ end function api:has_identity(category, type, name) for _, id in ipairs(self:get_host_items("identity")) do if id.category == category and id.type == type and id.name == name then - return true; + return true; end end return false; @@ -252,21 +252,21 @@ function api:get_option_array(name, ...) if value == nil then return nil; end - + if type(value) ~= "table" then return array{ value }; -- Assume any non-list is a single-item list end - + return array():append(value); -- Clone end function api:get_option_set(name, ...) local value = self:get_option_array(name, ...); - + if value == nil then return nil; end - + return set.new(value); end |