Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Jun 8, 2024
1 parent 98d6896 commit 52562e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function system.listconsoleflags(fh)

local flags = assert(system.getconsoleflags(fh))
local out = {}
for k,v in pairs(sys) do
for k,v in pairs(system) do
if type(k) == "string" and k:sub(1,4) == flagtype then
if flags:has_all_of(v) then
out[#out+1] = string.format("%10d [x] %s",v:value(),k)
Expand Down Expand Up @@ -207,7 +207,7 @@ function system.listtermflags(fh)
for _, flagtype in ipairs { "iflag", "oflag", "lflag" } do
local prefix = flagtype:sub(1,1):upper() .. "_" -- I_, O_, or L_, the constant prefixes
local out = {}
for k,v in pairs(sys) do
for k,v in pairs(system) do
if type(k) == "string" and k:sub(1,2) == prefix then
if flags[flagtype]:has_all_of(v) then
out[#out+1] = string.format("%10d [x] %s",v:value(),k)
Expand Down Expand Up @@ -375,4 +375,4 @@ end



return sys
return system

0 comments on commit 52562e9

Please sign in to comment.