Skip to content

Commit

Permalink
Removed remaining ipairs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkargus committed Jul 10, 2024
1 parent fa2b128 commit a2fb260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Components/PluginApp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local Tooltip = require(Components.Tooltip)
local function GetInvisibleParts()
local ignoreList = {}

for _, descendant in ipairs(workspace:GetDescendants()) do
for _, descendant in workspace:GetDescendants() do
if descendant:IsA('BasePart') and descendant.Transparency == 1 then
table.insert(ignoreList, descendant)
end
Expand Down
4 changes: 2 additions & 2 deletions src/Util/Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local Settings = {}
Settings._values = DEFAULT_SETTINGS
Settings._updateListeners = {}

for key, defaultValue in pairs(Settings._values) do
for key, defaultValue in Settings._values do
local savedValue = plugin:GetSetting(key)

if savedValue == nil then
Expand All @@ -36,7 +36,7 @@ function Settings:Set(key: string, value: any)
plugin:SetSetting(key, value)

if self._updateListeners[key] then
for callback in pairs(self._updateListeners[key]) do
for callback in self._updateListeners[key] do
task.spawn(callback, value)
end
end
Expand Down

0 comments on commit a2fb260

Please sign in to comment.