From ee31689f9e0a58737376aaa0ded7513c23982bff Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 2 Aug 2024 08:38:54 +0200 Subject: [PATCH] fix: corrige fonction reduce --- classes/dataholders/listholder.lua | 2 +- classes/dataholders/simpleholder.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/dataholders/listholder.lua b/classes/dataholders/listholder.lua index 409c1d4..de1b425 100644 --- a/classes/dataholders/listholder.lua +++ b/classes/dataholders/listholder.lua @@ -32,7 +32,7 @@ function ListHolder:replace(datas) end end -function ListHolder:reduce(list, level) +function ListHolder:reduce(level) return self.list end diff --git a/classes/dataholders/simpleholder.lua b/classes/dataholders/simpleholder.lua index f6a0418..af7371a 100644 --- a/classes/dataholders/simpleholder.lua +++ b/classes/dataholders/simpleholder.lua @@ -11,7 +11,7 @@ function SimpleHolder:applyCommand(command, args) self.value = args end -function SimpleHolder:reduce(list, level) +function SimpleHolder:reduce(level) return self.value end