Skip to content

Commit ee9a446

Browse files
committed
Fix return nil on void returns
1 parent df0b520 commit ee9a446

File tree

11 files changed

+3
-33
lines changed

11 files changed

+3
-33
lines changed

dist/library/modules/buildings.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ function dfhack.buildings.constructWithFilters(bld, items) end
9191
function dfhack.buildings.deconstruct(bld) end
9292

9393
---@param bld df.building
94-
---@return nil
9594
function dfhack.buildings.notifyCivzoneModified(bld) end
9695

9796
---@param bld df.building
@@ -120,6 +119,5 @@ function dfhack.buildings.isPitPond(building) end
120119
function dfhack.buildings.isActive(building) end
121120

122121
---@param bld df.building
123-
---@return nil
124122
function dfhack.buildings.completeBuild(bld) end
125123

dist/library/modules/burrows.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dfhack.burrows = {}
88

99
---@param pvec { [integer]: df.map_block }
1010
---@param burrow df.burrow
11-
---@return nil
1211
function dfhack.burrows.listBlocks(pvec, burrow) end
1312

1413
---@param name string
@@ -17,7 +16,6 @@ function dfhack.burrows.listBlocks(pvec, burrow) end
1716
function dfhack.burrows.findByName(name, ignore_final_plus) end
1817

1918
---@param burrow df.burrow
20-
---@return nil
2119
function dfhack.burrows.clearUnits(burrow) end
2220

2321
---@param burrow df.burrow
@@ -28,10 +26,8 @@ function dfhack.burrows.isAssignedUnit(burrow, unit) end
2826
---@param burrow df.burrow
2927
---@param unit df.unit
3028
---@param enable boolean|nil
31-
---@return nil
3229
function dfhack.burrows.setAssignedUnit(burrow, unit, enable) end
3330

3431
---@param burrow df.burrow
35-
---@return nil
3632
function dfhack.burrows.clearTiles(burrow) end
3733

dist/library/modules/gui.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,18 @@ function dfhack.gui.makeAnnouncement(type, flags, pos, message, color, bright) e
2020
---@param message string
2121
---@param color integer
2222
---@param bright boolean|nil
23-
---@return nil
2423
function dfhack.gui.showAnnouncement(message, color, bright) end
2524

2625
---@param type df.announcement_type
2726
---@param pos df.coord
2827
---@param message string
2928
---@param color integer
3029
---@param bright boolean|nil
31-
---@return nil
3230
function dfhack.gui.showZoomAnnouncement(type, pos, message, color, bright) end
3331

3432
---@param message string
3533
---@param color integer
3634
---@param bright boolean|nil
37-
---@return nil
3835
function dfhack.gui.showPopupAnnouncement(message, color, bright) end
3936

4037
---@param type df.announcement_type
@@ -44,7 +41,6 @@ function dfhack.gui.showPopupAnnouncement(message, color, bright) end
4441
---@param bright boolean|nil
4542
---@param unit_a df.unit
4643
---@param unit_d df.unit
47-
---@return nil
4844
function dfhack.gui.showAutoAnnouncement(type, pos, message, color, bright, unit_a, unit_d) end
4945

5046
---@param info df.announcement_infost
@@ -158,11 +154,9 @@ function dfhack.gui.getAnyStockpile(top) end
158154
function dfhack.gui.getAnyPlant(top) end
159155

160156
---@param message string
161-
---@return nil
162157
function dfhack.gui.writeToGamelog(message) end
163158

164159
---@param pause boolean|nil
165-
---@return nil
166160
function dfhack.gui.resetDwarfmodeView(pause) end
167161

168162
---@return boolean

dist/library/modules/items.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function dfhack.items.getOuterContainerRef(item, init_ref) end
2222

2323
---@param item df.item
2424
---@param items { [integer]: df.item }
25-
---@return nil
2625
function dfhack.items.getContainedItems(item, items) end
2726

2827
---@param item df.item

dist/library/modules/job.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ function dfhack.job.cloneJobStruct(job, keepEverything) end
2626

2727
---@param item df.job_item
2828
---@param idx integer
29-
---@return nil
3029
function dfhack.job.printItemDetails(item, idx) end
3130

3231
---@param job df.job
33-
---@return nil
3432
function dfhack.job.printJobDetails(job) end
3533

3634
---@param job df.job
@@ -54,18 +52,15 @@ function dfhack.job.getWorker(job) end
5452
---@param workshop df.building
5553
---@param worker df.unit
5654
---@param cooldown integer
57-
---@return nil
5855
function dfhack.job.setJobCooldown(workshop, worker, cooldown) end
5956

6057
---@param job df.job
6158
---@param cooldown integer
6259
---@return boolean
6360
function dfhack.job.removeWorker(job, cooldown) end
6461

65-
---@return nil
6662
function dfhack.job.checkBuildingsNow() end
6763

68-
---@return nil
6964
function dfhack.job.checkDesignationsNow() end
7065

7166
---@param item df.job_item
@@ -97,7 +92,6 @@ function dfhack.job.removePostings(job, remove_all) end
9792

9893
---@param job df.job
9994
---@param item_ref df.job_item_ref
100-
---@return nil
10195
function dfhack.job.disconnectJobItem(job, item_ref) end
10296

10397
---@param job df.job

dist/library/modules/maps.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ function dfhack.maps.getPlantAtTile(x, y, z) end
5555
---@param blk df.map_block
5656
---@param flow boolean|nil
5757
---@param temperature boolean|nil
58-
---@return nil
5958
function dfhack.maps.enableBlockUpdates(blk, flow, temperature) end
6059

6160
---@param index number

dist/library/modules/military.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ function dfhack.military.makeSquad(assignment_id) end
1212
---@param squad_id number
1313
---@param civzone_id number
1414
---@param flags df.squad_use_flags
15-
---@return nil
1615
function dfhack.military.updateRoomAssignments(squad_id, civzone_id, flags) end
1716

1817
---@param squad_id number

dist/library/modules/textures.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ function dfhack.textures.loadTileset(tile_px_w, tile_px_h, reserved) end
1515
function dfhack.textures.getTexposByHandle(handle) end
1616

1717
---@param handle unknown
18-
---@return nil
1918
function dfhack.textures.deleteHandle(handle) end
2019

2120
---@param tile_px_w integer

dist/library/modules/units.lua

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ function dfhack.units.getContainer(unit) end
348348

349349
---@param unit df.unit
350350
---@param nick string
351-
---@return nil
352351
function dfhack.units.setNickname(unit, nick) end
353352

354353
---@param unit df.unit
@@ -524,37 +523,31 @@ function dfhack.units.getStressCategoryRaw(stress_level) end
524523
---@param unit df.unit
525524
---@param amount number
526525
---@param affectedActionType df.unit_action_type
527-
---@return nil
528526
function dfhack.units.subtractActionTimers(unit, amount, affectedActionType) end
529527

530528
---@param unit df.unit
531529
---@param amount number
532530
---@param affectedActionTypeGroup df.unit_action_type_group
533-
---@return nil
534531
function dfhack.units.subtractGroupActionTimers(unit, amount, affectedActionTypeGroup) end
535532

536533
---@param unit df.unit
537534
---@param amount number
538535
---@param affectedActionType df.unit_action_type
539-
---@return nil
540536
function dfhack.units.multiplyActionTimers(unit, amount, affectedActionType) end
541537

542538
---@param unit df.unit
543539
---@param amount number
544540
---@param affectedActionTypeGroup df.unit_action_type_group
545-
---@return nil
546541
function dfhack.units.multiplyGroupActionTimers(unit, amount, affectedActionTypeGroup) end
547542

548543
---@param unit df.unit
549544
---@param amount number
550545
---@param affectedActionType df.unit_action_type
551-
---@return nil
552546
function dfhack.units.setActionTimers(unit, amount, affectedActionType) end
553547

554548
---@param unit df.unit
555549
---@param amount number
556550
---@param affectedActionTypeGroup df.unit_action_type_group
557-
---@return nil
558551
function dfhack.units.setGroupActionTimers(unit, amount, affectedActionTypeGroup) end
559552

560553
---@param noble string

dist/library/modules/world.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dfhack.world = {}
88
function dfhack.world.ReadPauseState() end
99

1010
---@param paused boolean|nil
11-
---@return nil
1211
function dfhack.world.SetPauseState(paused) end
1312

1413
---@return integer
@@ -27,7 +26,6 @@ function dfhack.world.ReadCurrentDay() end
2726
function dfhack.world.ReadCurrentWeather() end
2827

2928
---@param weather integer
30-
---@return nil
3129
function dfhack.world.SetCurrentWeather(weather) end
3230

3331
---@return string

0 commit comments

Comments
 (0)