Skip to content

Commit

Permalink
fixup for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mobot-gh committed Dec 10, 2023
1 parent 22abe79 commit 3b810b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/DCS-gRPC/methods/world.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GRPC.methods.getAirbases = function(params)
local result = {}
local unit

for i, airbase in ipairs(data) do
for _, airbase in pairs(data) do
if airbase:getDesc()['category'] == 2 then -- SHIP
unit = airbase:getUnit()
if unit then -- Unit object
Expand All @@ -35,7 +35,7 @@ GRPC.methods.getAirbases = function(params)
end -- no unit, move to next object
else -- Aerodrome or Helipad, so can be exported
result[#result+1] = GRPC.exporters.airbase(airbase)
end
end
end
return GRPC.success({airbases = result})
end
Expand Down

0 comments on commit 3b810b8

Please sign in to comment.