src/applications/vaos/referral-appointments/utils/referrals.js
Function createReferral
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createReferral = (startDate, uuid) => {
const [year, month, day] = startDate.split('-');
const relativeDate = new Date(year, month - 1, day);
const mydFormat = 'yyyy-MM-dd';