Skip to content

Commit 555a8ba

Browse files
committed
Fix lines contains trailing whitespace
1 parent 2660580 commit 555a8ba

File tree

11 files changed

+27
-27
lines changed

11 files changed

+27
-27
lines changed

[admin]/admin/client/admin_gui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function guiListSetVisible(list, state)
123123
if lists[list] then
124124
guiSetVisible(lists[list].bg, state)
125125
if state then
126-
guiFocus(lists[list].edit)
126+
guiFocus(lists[list].edit)
127127
end
128128
return true
129129
end

[admin]/admin/client/gui/admin_main.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function aAdminMenu ()
6767
if slap then
6868
aCurrentSlap = slap
6969
guiSetText(aTab1.Slap, "Slap! "..slap..' _')
70-
if (aSpectator.Slap) then
70+
if (aSpectator.Slap) then
7171
guiSetText(aSpectator.Slap, "Slap! "..slap.."hp")
7272
end
7373
end
@@ -132,8 +132,8 @@ y=y+B aTab1.VehicleHealth = guiCreateLabel ( 0.26, y, 0.25, 0.04, "Vehicle Heal
132132
end
133133

134134
local shortNames = {
135-
["Combat Shotgun"] = "Combat SG",
136-
["Rocket Launcher"] = "R. Launcher",
135+
["Combat Shotgun"] = "Combat SG",
136+
["Rocket Launcher"] = "R. Launcher",
137137
["Rocket Launcher HS"] = "R. Launcher HS"
138138
}
139139
guiListSetColumns(aTab1.GiveWeapon, {{text = '', width = 0.8}})
@@ -1038,7 +1038,7 @@ function aClientClick ( button )
10381038
if (aPlayers[player]['accountname'] ~= 'guest') then
10391039
aPermissions.Show(player)
10401040
else
1041-
aMessageBox ( "error", "This player is not logged in!" )
1041+
aMessageBox ( "error", "This player is not logged in!" )
10421042
end
10431043
elseif ( source == aTab1.ACModDetails ) then
10441044
aViewModdetails(player)
@@ -1233,14 +1233,14 @@ function aAdminReloadInfos()
12331233
triggerServerEvent ( "aSync", localPlayer, "player", player )
12341234
if (not isSensitiveDataHidden()) and guiCheckBoxGetSelected(aTab6.OutputPlayer) then
12351235
local playerName = aPlayers[player]["name"]
1236-
1236+
12371237
if isColorCodeHidden() then
12381238
playerName = removeColorCoding(playerName)
12391239
else
12401240
if playerName:find('#%x%x%x%x%x%x') then
12411241
playerName = playerName .. (' (%s)'):format(removeColorCoding(playerName))
12421242
end
1243-
end
1243+
end
12441244

12451245
outputConsole(' ')
12461246
outputConsole(('Name: %s'):format(playerName))
@@ -1444,4 +1444,4 @@ function loadFlagImage( guiStaticImage, countryCode )
14441444
end
14451445
end
14461446
guiStaticImageLoadImage ( guiStaticImage, "client\\images\\empty.png" )
1447-
end
1447+
end

[admin]/admin/client/gui/admin_permissions.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ function aPermissions.ConfirmChange(add)
108108

109109
local selected = guiGridListGetSelectedItem(gridlist)
110110

111-
if (selected <= -1) then
112-
return
111+
if (selected <= -1) then
112+
return
113113
end
114114

115115
local groupName = guiGridListGetItemText(gridlist, selected, 1)

[admin]/admin/server/admin_server.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ function aAction ( type, action, admin, player, data, more )
535535
string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. adminName )
536536
string = string.gsub ( string, "$data2", more or "" )
537537

538-
if ( player ) then
538+
if ( player ) then
539539
local playerName = aEscapeNickname( getPlayerName( player ) )
540-
string = string.gsub ( string, "$player", playerName)
540+
string = string.gsub ( string, "$player", playerName)
541541
end
542542

543543
return tostring ( string.gsub ( string, "$data", data or "" ) )
@@ -1297,7 +1297,7 @@ addEventHandler ( "aResource", _root, function ( name, action )
12971297
local text = ""
12981298
if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then text = "started" end
12991299
elseif ( action == "restart" ) then
1300-
if ( getResourceState ( getResourceFromName ( name ) ) == "running" ) then
1300+
if ( getResourceState ( getResourceFromName ( name ) ) == "running" ) then
13011301
if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end
13021302
end
13031303
elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end
@@ -1600,8 +1600,8 @@ addEventHandler ( "aAdminChat", _root, function ( chat )
16001600
outputServerLog ("(ADMIN CHAT) "..tostring(getPlayerName(source))..": "..chat)
16011601
end )
16021602

1603-
addCommandHandler(get("adminChatCommandName"),
1604-
function(thePlayer, cmd, ...)
1603+
addCommandHandler(get("adminChatCommandName"),
1604+
function(thePlayer, cmd, ...)
16051605
if hasObjectPermissionTo (thePlayer, "general.tab_adminchat", false) and #arg > 0 then
16061606
triggerEvent("aAdminChat", thePlayer, table.concat(arg, " "))
16071607
end

[admin]/admin2/client/main/admin_resources.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ end
9797
local timerSpam
9898
function aResourcesTab.onEditFilter()
9999
if isTimer(timerSpam) then
100-
killTimer(timerSpam)
100+
killTimer(timerSpam)
101101
end
102102
timerSpam = setTimer(aResourcesTab.ApplyFilter, 200, 1)
103103
end

[admin]/admin2/client/widgets/admin_interior.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ function aInterior.Show(player)
1717
local x, y = guiGetScreenSize()
1818
aInterior.Form = guiCreateWindow(x / 2 - 110, y / 2 - 150, 220, 300, "Player Interior Management", false)
1919
guiSetAlpha(aInterior.Form, 1)
20-
guiSetProperty(aInterior.Form, 'AlwaysOnTop', 'True')
20+
guiSetProperty(aInterior.Form, 'AlwaysOnTop', 'True')
2121
aInterior.List = guiCreateGridList(0.03, 0.17, 0.94, 0.65, true, aInterior.Form)
2222
guiGridListAddColumn(aInterior.List, "World", 0.2)
2323
guiGridListAddColumn(aInterior.List, "Description", 0.75)
2424
aInterior.Edit = guiCreateEdit(0.03, 0.08, 0.94, 0.08, '', true, aInterior.Form)
2525
aInterior.Select = guiCreateButton(0.03, 0.82, 0.94, 0.075, "Select", true, aInterior.Form)
2626
aInterior.Cancel = guiCreateButton(0.03, 0.90, 0.94, 0.075, "Cancel", true, aInterior.Form)
27-
27+
2828
aInterior.Load()
2929
aInterior.Refresh()
30-
30+
3131
addEventHandler("onClientGUIDoubleClick", aInterior.Form, aInterior.onDoubleClick)
3232
addEventHandler("onClientGUIClick", aInterior.Form, aInterior.onClick)
3333
addEventHandler("onClientGUIChanged", aInterior.Form, aInterior.onGUIChange)
34-
34+
3535
--Register With Admin Form
3636
aRegister("PlayerInterior", aInterior.Form, aInterior.Show, aInterior.Close)
3737
end

[admin]/admin2/client/widgets/admin_skin.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function aSkin.Show(player)
2020
local x, y = guiGetScreenSize()
2121
aSkin.Form = guiCreateWindow(x / 2 - 140, y / 2 - 140, 280, 280, "Player Skin Select", false)
2222
guiSetAlpha(aSkin.Form, 1)
23-
guiSetProperty(aSkin.Form, 'AlwaysOnTop', 'True')
23+
guiSetProperty(aSkin.Form, 'AlwaysOnTop', 'True')
2424
aSkin.Label =
2525
guiCreateLabel(0.03, 0.09, 0.94, 0.07, "Select a skin from the list or enter the id", true, aSkin.Form)
2626
guiLabelSetHorizontalAlign(aSkin.Label, "center")
2727
guiLabelSetColor(aSkin.Label, 255, 0, 0)
28-
28+
2929
aSkin.Edit = guiCreateEdit(0.03, 0.18, 0.70, 0.09, '', true, aSkin.Form)
3030
guiCreateInnerImage("client\\images\\search.png", aSkin.Edit)
3131

[admin]/admin2/server/admin_server.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ addEventHandler(
402402
end
403403
)
404404

405-
addCommandHandler(get("adminChatCommandName"),
406-
function(thePlayer, cmd, ...)
405+
addCommandHandler(get("adminChatCommandName"),
406+
function(thePlayer, cmd, ...)
407407
if (hasObjectPermissionTo(thePlayer, "general.tab_adminchat", false) and #arg > 0) then
408408
triggerEvent("aAdminChat", thePlayer, table.concat(arg, " "))
409409
end

[editor]/editor_main/client/colpatch.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function loadColPatchArchive()
171171

172172
fileClose(file)
173173
return true
174-
end
174+
end
175175

176176
function loadAndReplaceCollision()
177177
g_colElements = {}

[editor]/editor_main/server/saveloadtest_server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function saveOrganizationalDirectory(directory)
301301
if (type(directory) ~= 'string') or (utf8.len(directory) == 0) then
302302
directory = 'none'
303303
else
304-
directory = '[' .. directory .. ']'
304+
directory = '[' .. directory .. ']'
305305
end
306306
return set('*editor_main.mapResourceOrganizationalDirectory', directory)
307307
end

0 commit comments

Comments
 (0)