Skip to content

Commit

Permalink
shut up luacheck!
Browse files Browse the repository at this point in the history
  • Loading branch information
bkader committed Mar 27, 2022
1 parent d611200 commit 0c8fa63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions Skada/Core/Display/Inline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,15 @@ function barlibrary:CreateBar(uuid, win)
return bar
end

function barlibrary:Deposit(_bar)
function barlibrary:Deposit(bar)
--strip the bar of variables
_bar.inuse = false
_bar.bg:Hide()
_bar.value = 0
_bar.label:Hide()
bar.inuse = false
bar.bg:Hide()
bar.value = 0
bar.label:Hide()

--place it at the front of the queue
tinsert(barlibrary.bars, 1, _bar)
tinsert(barlibrary.bars, 1, bar)
end

function barlibrary:Withdraw(win)
Expand Down Expand Up @@ -312,11 +312,11 @@ function barlibrary:Withdraw(win)
return tremove(barlibrary.bars, 1)
end

function mod:RecycleBar(_bar)
_bar.value = 0
_bar.label:Hide()
_bar.bg:Hide()
barlibrary:Deposit(_bar)
function mod:RecycleBar(bar)
bar.value = 0
bar.label:Hide()
bar.bg:Hide()
barlibrary:Deposit(bar)
end

function mod:GetBar(win)
Expand Down
2 changes: 1 addition & 1 deletion Skada/Skada.toc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
## DefaultState: enabled
## Author: Kader (|cff808080bkader#6361|r)
## Version: 1.8.74
## X-Date: 2022-03-26 @ 08:16 PM |cff808080UTC|r
## X-Date: 2022-03-27 @ 11:15 AM |cff808080UTC|r
## X-Credits: Zarnivoop
## X-Category: Combat
## X-License: MIT/X
Expand Down

0 comments on commit 0c8fa63

Please sign in to comment.