Skip to content

Commit

Permalink
Fix Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
LengthenedGradient committed Aug 29, 2024
1 parent 12e0443 commit 6479163
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/acf/core/utilities/util_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ do -- Entity linking
--- @param Class2 string The other class in the link
--- @param Function LinkFunction The linking function defined between an entity of Class1 and an entity of Class2; this should always return a boolean for link status and a string for link message
function ACF.RegisterClassLink(Class1, Class2, Function)
local LinkData = ACF.InitLink(Class1,Class2)
local LinkData = ACF.InitLink(Class1, Class2)
LinkData.Link = Function
end

Expand Down
5 changes: 3 additions & 2 deletions lua/entities/acf_base_scalable/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ end ---------------------------------------------
do -- Entity linking and unlinking --------------
local LinkText = "%s can't be linked to %s."
local UnlinkText = "%s can't be unlinked from %s."
local timer = timer

function ENT:Link(Target, FromChip)
if not IsValid(Target) then return false, "Attempted to link an invalid entity." end
Expand All @@ -83,10 +84,10 @@ do -- Entity linking and unlinking --------------
local result, message = Check(A, B)
if result then
if FromChip and ChipDelay then
timer.Simple(ChipDelay,function()
timer.Simple(ChipDelay, function()
if Check(A, B) then Function(A, B) end
end)
else Function(A,B) end
else Function(A, B) end
end
return result, message
end
Expand Down
3 changes: 2 additions & 1 deletion lua/entities/acf_base_simple/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ end ---------------------------------------------
do -- Entity linking and unlinking --------------
local LinkText = "%s can't be linked to %s."
local UnlinkText = "%s can't be unlinked from %s."
local timer = timer

function ENT:Link(Target, FromChip)
if not IsValid(Target) then return false, "Attempted to link an invalid entity." end
Expand All @@ -83,7 +84,7 @@ do -- Entity linking and unlinking --------------
local result, message = Check(A, B)
if result then
if FromChip and ChipDelay then
timer.Simple(ChipDelay,function()
timer.Simple(ChipDelay, function()
if Check(A, B) then Function(A, B) end
end)
else Function(A,B) end

Check warning on line 90 in lua/entities/acf_base_simple/init.lua

View workflow job for this annotation

GitHub Actions / Lint / lint

"Space after comma"

Style: Please add a space after the comma
Expand Down

0 comments on commit 6479163

Please sign in to comment.