Comparison

core/portmanager.lua @ 6686:c5b512cddda0

portmanager: Add luacheck annotations
author Matthew Wild <mwild1@gmail.com>
date Wed, 13 May 2015 17:07:30 +0100
parent 6663:d3023dd07cb6
child 6687:d1ee04683689
comparison
equal deleted inserted replaced
6678:343ca80ceb36 6686:c5b512cddda0
150 log("info", "Activated service '%s' on %s", service_name, #hooked_ports == 0 and "no ports" or table.concat(hooked_ports, ", ")); 150 log("info", "Activated service '%s' on %s", service_name, #hooked_ports == 0 and "no ports" or table.concat(hooked_ports, ", "));
151 return true; 151 return true;
152 end 152 end
153 153
154 function deactivate(service_name, service_info) 154 function deactivate(service_name, service_info)
155 for name, interface, port, n, active_service 155 for name, interface, port, n, active_service --luacheck: ignore 213/name 213/n
156 in active_services:iter(service_name or service_info and service_info.name, nil, nil, nil) do 156 in active_services:iter(service_name or service_info and service_info.name, nil, nil, nil) do
157 if service_info == nil or active_service.service == service_info then 157 if service_info == nil or active_service.service == service_info then
158 close(interface, port); 158 close(interface, port);
159 end 159 end
160 end 160 end