Skip to content

Commit

Permalink
Use lwutil.keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Katerina Barone-Adesi committed Aug 25, 2016
1 parent 16102b3 commit 1bf66c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/program/lwaftr/check/check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ local lwaftr = require("apps.lwaftr.lwaftr")
local lwcounter = require("apps.lwaftr.lwcounter")
local counter_names = lwcounter.counter_names
local counters_dir = lwcounter.counters_dir
local write_to_file = require("apps.lwaftr.lwutil").write_to_file
local lwutil = require("apps.lwaftr.lwutil")
local write_to_file = lwutil.write_to_file

function show_usage(code)
print(require("program.lwaftr.check.README_inc"))
Expand Down Expand Up @@ -80,8 +81,7 @@ function validate_diff(actual, expected)
end

local function regen_counters(counters, outfile)
local cnames = {}
for k in pairs(counters) do table.insert(cnames, k) end
local cnames = lwutil.keys(counters)
table.sort(cnames)
local out_val = {'return {'}
for _,k in ipairs(cnames) do
Expand Down

0 comments on commit 1bf66c0

Please sign in to comment.