From 88d75b4013a081814e337f4e6ed6b395536fc789 Mon Sep 17 00:00:00 2001 From: Markus Ast Date: Fri, 30 Jun 2023 10:08:20 +0200 Subject: [PATCH] fix new lua lint (#229) --- lua/DCS-gRPC/grpc-mission.lua | 2 +- lua/Hooks/DCS-gRPC.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/DCS-gRPC/grpc-mission.lua b/lua/DCS-gRPC/grpc-mission.lua index d683e3e2..da41487e 100644 --- a/lua/DCS-gRPC/grpc-mission.lua +++ b/lua/DCS-gRPC/grpc-mission.lua @@ -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 diff --git a/lua/Hooks/DCS-gRPC.lua b/lua/Hooks/DCS-gRPC.lua index 87ab7b54..596ed6d2 100644 --- a/lua/Hooks/DCS-gRPC.lua +++ b/lua/Hooks/DCS-gRPC.lua @@ -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