gluon-web-logging: remove uci:set() nil check
simple-uci will now delete an option when nil is passed.
This commit is contained in:
parent
6884aad788
commit
0fee6cc707
@ -31,11 +31,7 @@ port.optional = true
|
|||||||
port.placeholder = 514
|
port.placeholder = 514
|
||||||
port.datatype = 'irange(1, 65535)'
|
port.datatype = 'irange(1, 65535)'
|
||||||
function port:write(data)
|
function port:write(data)
|
||||||
if data ~= nil then
|
|
||||||
uci:set('system', system, 'log_port', data)
|
uci:set('system', system, 'log_port', data)
|
||||||
else
|
|
||||||
uci:delete('system', system, 'log_port')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function f:write()
|
function f:write()
|
||||||
|
Loading…
Reference in New Issue
Block a user