From a9008b3da4c675b236db3f238a353d612cf87d11 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Mon, 12 Jun 2023 19:24:51 +0200 Subject: [PATCH] simplify condition --- plugins/stronghold/guest-js/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stronghold/guest-js/index.ts b/plugins/stronghold/guest-js/index.ts index 9450826b..26c03958 100644 --- a/plugins/stronghold/guest-js/index.ts +++ b/plugins/stronghold/guest-js/index.ts @@ -299,7 +299,7 @@ export class Store { client: this.client, key: toBytesDto(key), }).then((v) => { - if (v !== null && v !== undefined) { + if (v) { return Uint8Array.from(v); } else { return null;