refactored some parameter setting

This commit is contained in:
Dennis Luxen
2013-06-26 13:40:25 -04:00
parent 9d6bd91279
commit 48cb374d94
2 changed files with 89 additions and 90 deletions
+2 -3
View File
@@ -3,9 +3,8 @@ local ipairs = ipairs
module "Access"
function find_access_tag(source,access_tags_hierachy)
for i,v in ipairs(access_tags_hierachy) do
local tag = source.tags:Find(v)
if tag ~= '' then
for i,v in ipairs(access_tags_hierachy) do
if source.tags:Find(v) ~= '' then
return tag
end
end