From 04eea0955c4a7b6d183fa7545b61c0732b8b41b8 Mon Sep 17 00:00:00 2001 From: spag Date: Thu, 24 Jan 2013 15:59:49 +0100 Subject: unused variables --- misc/freeswitch/scripts/phones/snom.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'misc/freeswitch') diff --git a/misc/freeswitch/scripts/phones/snom.lua b/misc/freeswitch/scripts/phones/snom.lua index ef3ab93..bb17796 100644 --- a/misc/freeswitch/scripts/phones/snom.lua +++ b/misc/freeswitch/scripts/phones/snom.lua @@ -56,9 +56,5 @@ function Snom.resync_http(self, ip_address, http_user, http_password, http_port) local command = 'http_request.lua snom_resync http://' .. tostring(ip_address):gsub('[^0-9%.]', '') .. port_str .. '/advanced.htm?reboot=Reboot ' .. (http_user or '') .. ' ' .. (http_password or ''); require 'common.fapi' - common.fapi.FApi:new():execute('luarun', command); - - if result and tonumber(result) == 0 then - return true; - end + return common.fapi.FApi:new():execute('luarun', command); end -- cgit v1.2.3