From a0c9b5cb07e4b691874e858527e36cb8c83c56d0 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 4 Aug 2016 15:55:56 +0000 Subject: Remove trailing whitespace --- lib/roles.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/roles.lua') diff --git a/lib/roles.lua b/lib/roles.lua index eb64305..cef1d28 100644 --- a/lib/roles.lua +++ b/lib/roles.lua @@ -81,7 +81,7 @@ mymodule.get_controllers_func = function(self,controller_info) _G[controller_info.name] = loaded temp1 = {} for a,b in pairs(temp) do - local c = string.match(a,"^mvc") or string.match(a,"^_") + local c = string.match(a,"^mvc") or string.match(a,"^_") if c == nil and type(temp[a])=="function" then temp1[#temp1 +1] = a end @@ -96,7 +96,7 @@ mymodule.get_controllers_view = function(self,controller_info) for file in fs.find(controller_info.sname.."%-[^%.]+%-html%.lsp", controller_info.path) do temp[#temp + 1] = string.match(file, controller_info.sname.."%-([^%./]+)%-html%.lsp") end - return temp + return temp end mymodule.get_all_permissions = function(self) @@ -166,7 +166,7 @@ mymodule.list_default_roles = function(self) table.sort(default_roles, function(a,b) if string.byte(a, 1) == 47 and string.byte(b,1) ~= 47 then return false elseif string.byte(a, 1) ~= 47 and string.byte(b,1) == 47 then return true - else return a