libs/web: remove debugging code
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Jan 2012 23:39:29 +0000 (23:39 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Jan 2012 23:39:29 +0000 (23:39 +0000)
libs/web/luasrc/cbi.lua
libs/web/luasrc/cbi/datatypes.lua

index e885e4e286189960ff4b871fedd20ce9a41b93df..ef45a89563e38a1921c765407da412063bb46295 100644 (file)
@@ -1432,13 +1432,11 @@ function AbstractValue.validate(self, value)
                        local v
                        for _, v in ipairs(value) do
                                if v and #v > 0 and not verify_datatype(self.datatype, v) then
-                                       error('F')
                                        return nil
                                end
                        end
                else
                        if not verify_datatype(self.datatype, value) then
-                               error('F')
                                return nil
                        end
                end
index 6d871573413a0cf698b9fdad7830c89a98fcb3ef..71f4a2a5614e429bf4eaa2fe336851baee53d7f6 100644 (file)
@@ -29,7 +29,6 @@ _M['or'] = function(v, ...)
                local f = select(i, ...)
                local a = select(i+1, ...)
                if type(f) ~= "function" then
-                       print("COMP", f, v)
                        if f == v then
                                return true
                        end