Add glualint workflow (#21)
* Add glualint workflow * Fix linting violation
This commit is contained in:
parent
eeeb3e367c
commit
1b85661f4f
10
.github/workflows/glualint.yml
vendored
Normal file
10
.github/workflows/glualint.yml
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: GLuaFixer
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Lint:
|
||||||
|
uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master
|
||||||
|
with:
|
||||||
|
config: "https://cfc.gg/configs/gluafixer/glualint.json"
|
@ -525,7 +525,7 @@ hook.Add( "CFC_CrashTick", "CFC_DisconnectInterface_InterfaceUpdate", function(
|
|||||||
if _apiState ~= CFCCrashAPI.PINGING_API then
|
if _apiState ~= CFCCrashAPI.PINGING_API then
|
||||||
apiState = _apiState
|
apiState = _apiState
|
||||||
end
|
end
|
||||||
local shouldShowInterface = hook.Run("CFC_DisconnectInterface_ShouldShowInterface")
|
local shouldShowInterface = hook.Run( "CFC_DisconnectInterface_ShouldShowInterface" )
|
||||||
if shouldShowInterface ~= false and isCrashing then
|
if shouldShowInterface ~= false and isCrashing then
|
||||||
-- Open interface if server is crashing, API has responded, interface isn't already open, and interface has not yet been opened
|
-- Open interface if server is crashing, API has responded, interface isn't already open, and interface has not yet been opened
|
||||||
if _apiState == CFCCrashAPI.PINGING_API or _apiState == CFCCrashAPI.SERVER_UP then return end
|
if _apiState == CFCCrashAPI.PINGING_API or _apiState == CFCCrashAPI.SERVER_UP then return end
|
||||||
|
Loading…
Reference in New Issue
Block a user