lib/allLinkRecord.js
Function createAllLinkRecord
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createAllLinkRecord = buffer => {
const flags = parseInt(buffer.substring(0, 2), 16)
const response = {
inUse: (0x80 & flags) !== 0,
isController: (0x40 & flags) !== 0,