refactor avoidTooShort function

This commit is contained in:
Amruth Pillai
2024-03-10 10:25:47 +01:00
parent ec612f0902
commit c8f7989c1f

View File

@ -55,12 +55,10 @@ export class LinkedInParser implements Parser<JSZip, LinkedIn> {
convert(data: LinkedIn) {
const result = JSON.parse(JSON.stringify(defaultResumeData)) as ResumeData;
function avoidTooShort(name: string, len: number) {
if (!name || name.length<len) {
return "Unknown";
} else {
const avoidTooShort = (name: string, len: number) => {
if (!name || name.length < len) return "Unknown";
return name;
}
};
// Profile