gluon-web-logging: remove uci:set() nil check

simple-uci will now delete an option when nil is passed.
This commit is contained in:
Matthias Schiffer 2017-08-08 04:18:21 +02:00
parent 6884aad788
commit 0fee6cc707
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -31,11 +31,7 @@ port.optional = true
port.placeholder = 514
port.datatype = 'irange(1, 65535)'
function port:write(data)
if data ~= nil then
uci:set('system', system, 'log_port', data)
else
uci:delete('system', system, 'log_port')
end
uci:set('system', system, 'log_port', data)
end
function f:write()