Showing 2 of 9 total issues
Function send
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async send(params) {
debug('dm:create', 'sending DM')
if(!params.to.identifier) throw new Error(`Expected user id, got '${params.to.identifier}'`)
Function addValidator
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addValidator = (validator, root) => {
root = root ? `${root}.` : '' // append dot notation
// Generate a base address if not supplied
let address = validator.address || randStr({ length: 10 });