Commit 999bdad5 authored by Pierre Ynard's avatar Pierre Ynard

luarc: remove pointless extra variables

parent 2c5b243d
...@@ -607,7 +607,7 @@ function call_command(cmd,client,arg) ...@@ -607,7 +607,7 @@ function call_command(cmd,client,arg)
end end
function call_libvlc_command(cmd,client,arg) function call_libvlc_command(cmd,client,arg)
local ok, vlcerr, vlcmsg = pcall( vlc.var.libvlc_command, cmd, arg ) local ok, vlcerr = pcall( vlc.var.libvlc_command, cmd, arg )
if not ok then if not ok then
local a = arg or "" local a = arg or ""
if a ~= "" then a = " " .. a end if a ~= "" then a = " " .. a end
...@@ -621,7 +621,7 @@ function call_object_command(cmd,client,arg) ...@@ -621,7 +621,7 @@ function call_object_command(cmd,client,arg)
if arg ~= nil then if arg ~= nil then
var, val = split_input(arg) var, val = split_input(arg)
end end
local ok, vlcmsg, vlcerr, vlcerrmsg = pcall( vlc.var.command, cmd, var, val ) local ok, vlcmsg, vlcerr = pcall( vlc.var.command, cmd, var, val )
if not ok then if not ok then
local v = var or "" local v = var or ""
if v ~= "" then v = " " .. v end if v ~= "" then v = " " .. v end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment