Sat, 07 Mar 2009 19:40:00 +0000
util.logger: Small code tidying :)
util/logger.lua | file | annotate | diff | comparison | revisions |
--- a/util/logger.lua Sat Mar 07 20:33:21 2009 +0100 +++ b/util/logger.lua Sat Mar 07 19:40:00 2009 +0000 @@ -18,7 +18,7 @@ local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; local do_pretty_printing = not os.getenv("WINDIR"); -local find = require "string".find; +local find = string.find; local ipairs = ipairs; module "logger" @@ -41,8 +41,8 @@ local log_this = false; for _, source in ipairs(log_sources) do if find(name, source) then - log_this = true - break + log_this = true; + break; end end