From 72c3cea22ca30b84b762cf4c60019540a7f850f7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 23 Jun 2018 17:24:28 -0700 Subject: [PATCH] Minor cleanup --- files.lua | 4 ++-- files.moon | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files.lua b/files.lua index 77bdf6d..9265056 100644 --- a/files.lua +++ b/files.lua @@ -35,10 +35,10 @@ iterate_single = function(item, prev) return item end end -local match, sub, rep, gsub, format, byte, find +local match, gsub do local _obj_0 = string - match, sub, rep, gsub, format, byte, match, find = _obj_0.match, _obj_0.sub, _obj_0.rep, _obj_0.gsub, _obj_0.format, _obj_0.byte, _obj_0.match, _obj_0.find + match, gsub = _obj_0.match, _obj_0.gsub end iterate_single = function(item, prev) if item == prev then diff --git a/files.moon b/files.moon index 3abae95..629bc9c 100644 --- a/files.moon +++ b/files.moon @@ -25,7 +25,7 @@ files.read = (filename)-> iterate_single = (item, prev) -> if item == prev then nil else item -- `walk` returns an iterator over all files matching a path. -{:match, :sub, :rep, :gsub, :format, :byte, :match, :find} = string +{:match, :gsub} = string iterate_single = (item, prev) -> if item == prev then nil else item ok, lfs = pcall(require, "lfs") if ok