From 2b50930f54cb77fcc881f69e3db7fac504abd078 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Mon, 8 Apr 2024 09:13:51 -0700 Subject: [PATCH] fmt and cleanup comment --- protocol/convert.ts | 6 ++++-- protocol/index.ts | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/protocol/convert.ts b/protocol/convert.ts index 11211359d..de210e14e 100644 --- a/protocol/convert.ts +++ b/protocol/convert.ts @@ -437,9 +437,11 @@ export function ArcjetIpDetailsFromProtocol( city: ipDetails.city !== "" ? ipDetails.city : undefined, region: ipDetails.region !== "" ? ipDetails.region : undefined, country: ipDetails.country !== "" ? ipDetails.country : undefined, - countryName: ipDetails.countryName !== "" ? ipDetails.countryName : undefined, + countryName: + ipDetails.countryName !== "" ? ipDetails.countryName : undefined, continent: ipDetails.continent !== "" ? ipDetails.continent : undefined, - continentName: ipDetails.continentName !== "" ? ipDetails.continentName : undefined, + continentName: + ipDetails.continentName !== "" ? ipDetails.continentName : undefined, asn: ipDetails.asn !== "" ? ipDetails.asn : undefined, asnName: ipDetails.asnName !== "" ? ipDetails.asnName : undefined, asnDomain: ipDetails.asnDomain !== "" ? ipDetails.asnDomain : undefined, diff --git a/protocol/index.ts b/protocol/index.ts index d86f547e0..6433c0c93 100644 --- a/protocol/index.ts +++ b/protocol/index.ts @@ -439,7 +439,6 @@ export class ArcjetIpDetails { } // If we have ASN, we should have every piece of ASN information. - // TODO: Verify the above comment and implementation below hasASN(): this is RequiredProps< this, "asn" | "asnName" | "asnDomain" | "asnType" | "asnCountry"