Add glualint workflow (#21)

* Add glualint workflow

* Fix linting violation
This commit is contained in:
Brandon Sturgeon 2022-09-26 10:12:16 -07:00 committed by GitHub
parent eeeb3e367c
commit 1b85661f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

10
.github/workflows/glualint.yml vendored Normal file
View 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"

View File

@ -525,7 +525,7 @@ hook.Add( "CFC_CrashTick", "CFC_DisconnectInterface_InterfaceUpdate", function(
if _apiState ~= CFCCrashAPI.PINGING_API then
apiState = _apiState
end
local shouldShowInterface = hook.Run("CFC_DisconnectInterface_ShouldShowInterface")
local shouldShowInterface = hook.Run( "CFC_DisconnectInterface_ShouldShowInterface" )
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
if _apiState == CFCCrashAPI.PINGING_API or _apiState == CFCCrashAPI.SERVER_UP then return end