Skip to content

Commit

Permalink
remove unnecessary null chec
Browse files Browse the repository at this point in the history
Co-authored-by: Gregor MacLennan <gmaclennan@digital-democracy.org>
  • Loading branch information
tomasciccola and gmaclennan authored Aug 5, 2024
1 parent dd3122c commit c452e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/encode-conversions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export const convertObservation: ConvertFunction<'observation'> = (
let presetRef
if (mapeoDoc.presetRef) {
presetRef = {
docId: Buffer.from(mapeoDoc.presetRef?.docId, 'hex'),
versionId: parseVersionId(mapeoDoc.presetRef?.versionId),
docId: Buffer.from(mapeoDoc.presetRef.docId, 'hex'),
versionId: parseVersionId(mapeoDoc.presetRef.versionId),
}
}

Expand Down

0 comments on commit c452e1a

Please sign in to comment.