Merge pull request 'Prevent Module from requiring itself (#67)' (#68) from feat/#67 into master
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker-build Pipeline was successful Details
ci/woodpecker/push/lint Pipeline was successful Details

Reviewed-on: #68
This commit is contained in:
Aire-One 2022-12-30 18:33:45 +01:00
commit 6135594d7e
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ local __Module_Doc: metatable<Module_Doc> = {
end
end
end
-- Prevent the module from requiring itself
self.requires:set(self.record_name, nil)
end
}
end,