Simplify return

pull/83/head
MillenniumEarl 2021-03-21 22:22:06 +01:00
parent 04e9489239
commit b74a212c80
1 changed files with 1 additions and 3 deletions

View File

@ -446,9 +446,7 @@ function pairUpElements(elements: IPostElement[]): IPostElement[] {
// Now we find all the elements between indexes and
// associate them with the previous "title" element
const data = indexes.map((i, j) => parseGroupData(i, j, indexes, shallow));
return data;
return indexes.map((i, j) => parseGroupData(i, j, indexes, shallow));
}
function filterValidElements(element: IPostElement, index: number, array: IPostElement[]): boolean {