upgrade prettier and run on all files

This commit is contained in:
Przemek Więch
2025-01-11 12:06:24 +01:00
parent 9cadda886e
commit 97c17d47af
9 changed files with 39 additions and 43 deletions

View File

@@ -289,8 +289,9 @@ export function getName(person: GedcomEntry): string | undefined {
export function getFileName(fileEntry: GedcomEntry): string | undefined {
const fileTitle = fileEntry?.tree.find((entry) => entry.tag === 'TITL')?.data;
const fileExtension = fileEntry?.tree.find((entry) => entry.tag === 'FORM')
?.data;
const fileExtension = fileEntry?.tree.find(
(entry) => entry.tag === 'FORM',
)?.data;
return fileTitle && fileExtension && fileTitle + '.' + fileExtension;
}