Skip to content

Commit 4062ac8

Browse files
committed
Minor cleanup
1 parent 157007f commit 4062ac8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

geld.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
utils = require('utils')
1+
local utils = require('utils')
22

33
local validArgs = utils.invert({
44
'unit',
@@ -21,20 +21,17 @@ if args.unit then
2121
unit = df.unit.find(id)
2222
else
2323
qerror("Invalid unit ID provided.")
24-
return
2524
end
2625
else
2726
unit = dfhack.gui.getSelectedUnit()
2827
end
2928

3029
if not unit then
3130
qerror("Invalid unit selection.")
32-
return
3331
end
3432

3533
if unit.sex == df.pronoun_type.she then
3634
qerror("Cannot geld female animals.")
37-
return
3835
end
3936

4037
-- Find the geldable body part id, returns -1 on failure

0 commit comments

Comments
 (0)