diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-23 17:24:28 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-23 17:24:31 -0700 |
| commit | 72c3cea22ca30b84b762cf4c60019540a7f850f7 (patch) | |
| tree | 1cd49f4396139d10b2dc537dd44311f9e31aeb93 | |
| parent | 863983202ce4ef92d9e3a296a682535d157c245d (diff) | |
Minor cleanup
| -rw-r--r-- | files.lua | 4 | ||||
| -rw-r--r-- | files.moon | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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 |
