From c452e1abda8db1d571e9e86ac7da4ed733c28023 Mon Sep 17 00:00:00 2001 From: tomasciccola <117094913+tomasciccola@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:19:08 -0300 Subject: [PATCH] remove unnecessary null chec Co-authored-by: Gregor MacLennan --- src/lib/encode-conversions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/encode-conversions.ts b/src/lib/encode-conversions.ts index df54f09..dbd4a81 100644 --- a/src/lib/encode-conversions.ts +++ b/src/lib/encode-conversions.ts @@ -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), } }