Skip to content

Commit 02f8b80

Browse files
committed
Map null to undefined to match types
1 parent 2aea7be commit 02f8b80

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/service-provider-core/src/connect-info.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,25 @@ export default function getConnectExtraInfo({
8080
const { isGenuine: is_genuine, serverName: non_genuine_server_name } =
8181
getBuildInfo.getGenuineMongoDB(uri);
8282
// Atlas Data Lake has been renamed to Atlas Data Federation
83-
const { isDataLake: is_data_federation, dlVersion: dl_version } =
83+
const { isDataLake: is_data_federation, dlVersion } =
8484
getBuildInfo.getDataLake(buildInfo);
8585

86-
const { serverOs: server_os, serverArch: server_arch } =
87-
getBuildInfo.getBuildEnv(buildInfo);
86+
const { serverOs, serverArch } = getBuildInfo.getBuildEnv(buildInfo);
8887
const isAtlas = !!atlasVersion?.atlasVersion || getBuildInfo.isAtlas(uri);
8988

9089
return {
9190
...getHostInformation(resolvedHostname || uri),
9291
is_atlas: isAtlas,
9392
server_version: buildInfo.version,
9493
node_version: process.version,
95-
server_os,
94+
server_os: serverOs || undefined,
9695
uri,
97-
server_arch,
96+
server_arch: serverArch || undefined,
9897
is_enterprise: getBuildInfo.isEnterprise(buildInfo),
9998
auth_type,
10099
is_data_federation,
101100
is_stream: getBuildInfo.isAtlasStream(uri),
102-
dl_version,
101+
dl_version: dlVersion || undefined,
103102
atlas_version: atlasVersion?.atlasVersion ?? null,
104103
is_genuine,
105104
non_genuine_server_name,

0 commit comments

Comments
 (0)