# HG changeset patch # User Matthew Wild # Date 1236454800 0 # Node ID 5758c39285ab87d3f0b689be2f344373c0bb48f4 # Parent 0112ae30f399431902e9e4bd9dcd5997f9296410 util.logger: Small code tidying :) diff -r 0112ae30f399 -r 5758c39285ab util/logger.lua --- 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