From b89b2637b9ac023e5e9ffd66dcd0e5eab2251428 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 23 Sep 2022 11:04:38 +0100 Subject: [PATCH] Fix typing (#420) --- scripts/hak/target.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hak/target.ts b/scripts/hak/target.ts index e2d0b9c..6d3b296 100644 --- a/scripts/hak/target.ts +++ b/scripts/hak/target.ts @@ -179,7 +179,7 @@ export const TARGETS: Record<TargetId, Target> = { 'powerpc64le-unknown-linux-gnu': powerpc64leUnknownLinuxGnu, }; -export function getHost(): Target { +export function getHost(): Target | undefined { return Object.values(TARGETS).find(target => ( target.platform === process.platform && target.arch === process.arch &&