From ea8837d00448571602f9de0e918ebd97c03bc0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 30 Jan 2019 14:35:21 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/value.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'server/src/core/value.lua') diff --git a/server/src/core/value.lua b/server/src/core/value.lua index 53d5c749..d1933684 100644 --- a/server/src/core/value.lua +++ b/server/src/core/value.lua @@ -197,10 +197,8 @@ end function mt:removeUri(uri) if self._child then self._child[uri] = nil - self:rawEachField(function (field) - if field.value then - field.value:removeUri(uri) - end + self:rawEachField(function (key, field) + field.value:removeUri(uri) end) end if self._info then -- cgit v1.2.3