Skip to content

Commit

Permalink
chore(Reshape): Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Mar 19, 2021
1 parent 8e4ba9a commit 52b872a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/util/reshape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export function groupCitesIntoGiteGroup(
]) {
if (!curr.endsWith(startDelim)) continue

let group: schema.CiteGroup | undefined = undefined
let group: schema.CiteGroup | undefined
let items: schema.Cite[] = []
let ahead = 1
while (index + ahead < content.length) {
Expand All @@ -607,11 +607,10 @@ export function groupCitesIntoGiteGroup(
index + 1, // start
ahead - 1, // items to delete
// item to insert...
group
? group // existing group
: items.length === 1
? items[0] // only cite
: schema.citeGroup({ items }) // group cites together
group ??
(items.length === 1
? items[0] // only cite
: schema.citeGroup({ items })) // group cites together
)

// Skip ahead one so we don't bother looking at the
Expand Down

0 comments on commit 52b872a

Please sign in to comment.