Skip to content

Commit 251d154

Browse files
committed
removed trailing whitespaces
1 parent b1e55d2 commit 251d154

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

eggwatch.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ local function is_valid_animal(unit)
180180
end
181181
local function count_live_animals(race_creature_id)
182182
local count_adults = count_adults_for_race(race_creature_id)
183-
if count_adults then print_detalis(('we are counting adults for %s'):format(race_creature_id)) end
183+
if count_adults then print_detalis(('we are counting adults for %s'):format(race_creature_id)) end
184184
local count_children = count_children_for_race(race_creature_id)
185-
if count_children then print_detalis(('we are counting children and babies for %s'):format(race_creature_id)) end
186-
185+
if count_children then print_detalis(('we are counting children and babies for %s'):format(race_creature_id)) end
186+
187187
local count = 0
188188
if not count_adults and not count_children then
189189
return count
@@ -192,15 +192,15 @@ local function count_live_animals(race_creature_id)
192192
for _,unit in ipairs(df.global.world.units.active) do
193193
if race_creature_id == df.creature_raw.find(unit.race).creature_id
194194
and is_valid_animal(unit)
195-
and ( (count_adults and dfhack.units.isAdult(unit))
195+
and ( (count_adults and dfhack.units.isAdult(unit))
196196
or (count_children and ( dfhack.units.isChild(unit) or dfhack.units.isBaby(unit)))
197197
) then
198198
count = count + 1
199199
end
200200
end
201201
print_detalis(('found %s life animals'):format(count))
202202
return count
203-
end
203+
end
204204

205205

206206
local function handle_eggs(eggs)
@@ -248,7 +248,7 @@ local function handle_eggs(eggs)
248248
)
249249
)
250250
end
251-
251+
252252
print_detalis(("end handle_eggs"))
253253
end
254254

@@ -357,7 +357,7 @@ target_eggs_count_per_race = default_table
357357
elseif not command or command == "status" then
358358
print_status()
359359
print_local(dump(target_eggs_count_per_race))
360-
else
360+
else
361361
handle_error(('Command "%s" is not recognized'):format(command))
362362
end
363363
persist_state()

0 commit comments

Comments
 (0)