Skip to content

Commit 09c9414

Browse files
committed
a
1 parent 9891378 commit 09c9414

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Features/Cleanup/Janitor.lua

+2-4
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@ end
6060
@return boolean
6161
Returns true if the given class is a Janitor, if not it returns false.
6262
]=]
63-
6463
function Janitor.isJanitor(value: table?): boolean
6564
return type(value) == "table" and value.ClassName == "Janitor"
6665
end
6766

6867
--[=[
6968
@within Janitor
7069
@since 0.11
71-
@param task: any
70+
@param task any
7271
@method Give
7372
@return nil
7473
@@ -128,7 +127,6 @@ end
128127
```
129128
:::
130129
]=]
131-
132130
function Janitor:Give(task)
133131
local function handleTask(subtask: any)
134132
assert(typeof(task) ~= "boolean", "Task cannot be a boolean")
@@ -162,7 +160,7 @@ end
162160
163161
Calls for the Janitor to cleanup up all the tasks it was given.
164162
]=]
165-
function Janitor:Cleanup(taskTable: table?)
163+
function Janitor:Cleanup()
166164
local tasks = taskTable or self._tasks
167165

168166
--Influenced by Quenty's destructer implementation

0 commit comments

Comments
 (0)