server/services/lan-manager/lib/lan-manager.transformDevice.js
Function transformDevice
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function transformDevice(device) {
const { mac, hostname, ip, vendor } = device;
const deviceExternalId = `lan-manager:${mac.replaceAll(':', '').toLowerCase()}`;
const params = [];