Skip to content

Commit

Permalink
fix new lua lint (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkusa authored Jun 30, 2023
1 parent 4b6619d commit 88d75b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/DCS-gRPC/grpc-mission.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end
if not GRPC.dllPath then
GRPC.dllPath = lfs.writedir() .. [[Mods\tech\DCS-gRPC\]]
end
if GRPC.throughputLimit == nil or GRPC.throughputLimit == 0 or not type(GRPC.throughputLimit) == "number" then
if GRPC.throughputLimit == nil or GRPC.throughputLimit == 0 or type(GRPC.throughputLimit) ~= "number" then
GRPC.throughputLimit = 600
end

Expand Down
2 changes: 1 addition & 1 deletion lua/Hooks/DCS-gRPC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local function init()
if not GRPC.dllPath then
GRPC.dllPath = lfs.writedir() .. [[Mods\tech\DCS-gRPC\]]
end
if GRPC.throughputLimit == nil or GRPC.throughputLimit == 0 or not type(GRPC.throughputLimit) == "number" then
if GRPC.throughputLimit == nil or GRPC.throughputLimit == 0 or type(GRPC.throughputLimit) ~= "number" then
GRPC.throughputLimit = 600
end

Expand Down

0 comments on commit 88d75b4

Please sign in to comment.