Remove all trailing whitespace
[prosody.git] / core / moduleapi.lua
index a4ba9bc8f9015498558700419b16e9738ea54f07..6e85753153c6e48c1508ef175e9a9f35937188d9 100644 (file)
@@ -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