Skip to content

Commit

Permalink
fix(linting): errors on member.lua, pantheonDKP.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Bengejd committed Jun 12, 2024
1 parent bdf7cac commit 7d5d7c3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Modules/GuildManager/Member/Member.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function Member:_GetAverageEntryDistance()
for i = 1, #lastThree - 1 do
local week1 = Utils:GetWeekNumber(lastThree[i])
local week2 = Utils:GetWeekNumber(lastThree[i + 1])
totalWeeks = totalWeeks + math.abs(week1 - week2)
totalWeeks = totalWeeks + abs(week1 - week2)
end
local averageWeekDistance = totalWeeks / (#lastThree - 1);
return averageWeekDistance;
Expand Down
40 changes: 20 additions & 20 deletions PantheonDKP.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ PDKP.Wago = LibStub("WagoAnalytics"):Register("ZQ6arYKW")

PDKP.ldb = LibStub:GetLibrary("LibDataBroker-1.1")
PDKP.cbh = LibStub("CallbackHandler-1.0"):New(PDKP.CORE)
PDKP.LibDeflate = LibStub:GetLibrary("LibDeflate")
PDKP.LibDeflate = LibStub:GetLibrary("LibPDKP.MODULES = {}
PDKP.MODELS = { LEDGER = {} }
PDKP.CONSTANTS = {}
PDKP.GUI = {}
PDKP.OPTIONS = {}Deflate")


PDKP.MODULES = {}
PDKP.MODELS = { LEDGER = {} }
PDKP.CONSTANTS = {}
PDKP.GUI = {}
PDKP.OPTIONS = {}

PDKP.AUTOVERSION = "@project-version@"

Expand Down Expand Up @@ -54,20 +54,20 @@ local function Initialize_SavedVariables()
end
end

local function IsNewVersion(old, new)
if (type(old) ~= "table" or type(new) ~= "table") then
return false
end

if old.major < new.major then
return true
elseif old.minor < new.minor then
return true
elseif old.patch < new.patch then
return true
end
return false
end
-- local function IsNewVersion(old, new)
-- if (type(old) ~= "table" or type(new) ~= "table") then
-- return false
-- end
--
-- if old.major < new.major then
-- return true
-- elseif old.minor < new.minor then
-- return true
-- elseif old.patch < new.patch then
-- return true
-- end
-- return false
-- end

local function Initialize_Versioning()
-- Parse autoversion
Expand Down

0 comments on commit 7d5d7c3

Please sign in to comment.