Skip to content
Snippets Groups Projects
Unverified Commit 0fee6cc7 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

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

simple-uci will now delete an option when nil is passed.
parent 6884aad7
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment