Skip to content

Commit e8ca01a

Browse files
committed
Linting
1 parent 4560a45 commit e8ca01a

File tree

9 files changed

+12
-17
lines changed

9 files changed

+12
-17
lines changed

alcoholism/meta/sh_player.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ if SERVER then
1717
hook.Run("BACChanged", self, newBac)
1818
hook.Run("BACIncreased", self, amt, newBac)
1919
local threshold = lia.config.get("DrunkNotifyThreshold", 50)
20-
if oldBac < threshold and newBac >= threshold then
21-
hook.Run("BACThresholdReached", self, newBac)
22-
end
20+
if oldBac < threshold and newBac >= threshold then hook.Run("BACThresholdReached", self, newBac) end
2321
end
2422
end
2523

bodygrouper/netcalls/server.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ net.Receive("BodygrouperMenu", function(_, client)
4545
end
4646

4747
hook.Run("BodygrouperValidated", client, target, skn, groups)
48-
4948
hook.Run("PreBodygroupApply", client, target, skn, groups)
5049
local character = target:getChar()
5150
if not character then return end

broadcasts/libraries/server.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
lia.log.addType("classbroadcast", function(client, message) return string.format("%s sent class broadcast: %s", client:Name(), message) end, "Player")
2-
lia.log.addType("factionbroadcast", function(client, message) return string.format("%s sent faction broadcast: %s", client:Name(), message) end, "Player")
1+
lia.log.addType("classbroadcast", function(client, message) return string.format("%s sent class broadcast: %s", client:Name(), message) end, "Player")
2+
lia.log.addType("factionbroadcast", function(client, message) return string.format("%s sent faction broadcast: %s", client:Name(), message) end, "Player")

broadcasts/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ MODULE.CAMIPrivileges = {
1717

1818
MODULE.Features = {"Adds faction and class broadcast commands with CAMI checks", "Adds logging of broadcast messages for staff review", "Adds support for flagged players to send targeted messages", "Adds CAMI privileges for broadcast access", "Adds menus to select factions or classes"}
1919
lia.flag.add("B", "Access to Faction Broadcast")
20-
lia.flag.add("D", "Access to Class Broadcast")
20+
lia.flag.add("D", "Access to Class Broadcast")

cards/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ MODULE.discord = "@liliaplayer"
44
MODULE.version = 1.10
55
MODULE.desc = "Introduces a full deck of playing cards so players can draw random cards for minigames."
66
MODULE.Public = true
7-
MODULE.Features = {"Adds a full playing card deck", "Adds random draws that sync to all players", "Adds support for simple minigames", "Adds easy reshuffling of the deck", "Adds hooks so other modules can use cards"}
7+
MODULE.Features = {"Adds a full playing card deck", "Adds random draws that sync to all players", "Adds support for simple minigames", "Adds easy reshuffling of the deck", "Adds hooks so other modules can use cards"}

cigs/entities/weapons/weapon_ciga/shared.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,15 @@ function SWEP:Initialize()
117117
angle = Angle(0, 0, 0)
118118
}
119119
}
120+
120121
-- ensure WElements exists so later code can safely copy it
121122
self.WElements = self.WElements or {}
122123
end
123124

124125
if CLIENT then
125126
local function tableFullCopy(tab)
126127
local res = {}
127-
if not istable(tab) then
128-
return res
129-
end
128+
if not istable(tab) then return res end
130129
for k, v in pairs(tab) do
131130
if istable(v) then
132131
res[k] = tableFullCopy(v)

cigs/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ MODULE.version = 1.11
55
MODULE.desc = "Adds consumable cigarette items that produce smoke puffs while gradually burning down."
66
MODULE.WorkshopContent = "3519851007"
77
MODULE.Public = true
8-
MODULE.Features = {"Adds smokable cigarette items with workshop models", "Adds puff effects while smoking", "Adds cigarettes that are consumed over time", "Adds configurable nicotine addiction effects", "Adds ash particles that fade out"}
8+
MODULE.Features = {"Adds smokable cigarette items with workshop models", "Adds puff effects while smoking", "Adds cigarettes that are consumed over time", "Adds configurable nicotine addiction effects", "Adds ash particles that fade out"}

rumour/commands.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
hook.Run("RumourValidationFailed", client, rumourMessage)
2323
return
2424
end
25+
2526
if not client.rumourdelay then client.rumourdelay = 0 end
2627
if CurTime() < client.rumourdelay then
2728
local seconds = math.ceil(client.rumourdelay - CurTime())
@@ -43,9 +44,7 @@
4344
end
4445
end
4546

46-
if revealMath then
47-
hook.Run("RumourRevealed", client)
48-
end
47+
if revealMath then hook.Run("RumourRevealed", client) end
4948
hook.Run("RumourSent", client, rumourMessage, revealMath)
5049
end
5150
})

wordfilter/libraries/shared.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MODULE.WordBlackList = {"nigger", "faggot", "chink", "kike", "spic", "gook", "wetback", "dyke", "tranny", "retard", "coon", "raghead", "nip", "honky", "gyp", "beaner", "paki", "slant", "slope", "jap"}
1+
MODULE.WordBlackList = {"nigger", "faggot", "chink", "kike", "spic", "gook", "wetback", "dyke", "tranny", "retard", "coon", "raghead", "nip", "honky", "gyp", "beaner", "paki", "slant", "slope", "jap"}
22
function MODULE:LoadData()
33
local stored = self:getData({})
44
if istable(stored) then
@@ -47,4 +47,4 @@ function MODULE:PlayerSay(ply, text)
4747

4848
hook.Run("PostFilterCheck", ply, text, true)
4949
hook.Run("FilterCheckPassed", ply, text)
50-
end
50+
end

0 commit comments

Comments
 (0)