apps/meteor/app/lib/server/functions/validateCustomFields.js
Function validateCustomFields
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const validateCustomFields = function (fields) {
// Special Case:
// If an admin didn't set any custom fields there's nothing to validate against so consider any customFields valid
if (trim(settings.get('Accounts_CustomFields')) === '') {
return;