From 55761e71a51907777ad12cae2ce28a5aba46ea14 Mon Sep 17 00:00:00 2001 From: vcokltfre Date: Sat, 19 Nov 2022 11:06:25 +0000 Subject: [PATCH] chore: tidy unnecessary ternary expression --- api/services/domain/[query].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/domain/[query].ts b/api/services/domain/[query].ts index 4cb93d8..3f6dd49 100644 --- a/api/services/domain/[query].ts +++ b/api/services/domain/[query].ts @@ -20,7 +20,7 @@ export default async function handler( throw new Error(`Got error while querying for ${query}: ${first.error}`); } try { - const availability = first['Domain Status'].length > 0 ? false : true; + const availability = first['Domain Status'].length == 0; send(res, { availability }); } catch (err) { console.log(response);