Skip to content

Commit b12a474

Browse files
committed
test: fix unit test
1 parent ffbccf4 commit b12a474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmap/handshake/client_metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function makeClientMetadata(options: MakeClientMetadataOptions): ClientMe
123123
};
124124

125125
// This is where we handle additional driver info added after client construction.
126-
if (options.additionalDriverInfo.length > 0) {
126+
if (options.additionalDriverInfo?.length > 0) {
127127
for (const { name: n = '', version: v = '' } of options.additionalDriverInfo) {
128128
if (n.length > 0) {
129129
driverInfo.name = `${driverInfo.name}|${n}`;
@@ -145,7 +145,7 @@ export function makeClientMetadata(options: MakeClientMetadataOptions): ClientMe
145145
runtimeInfo = `${runtimeInfo}|${platform}`;
146146
}
147147

148-
if (options.additionalDriverInfo.length > 0) {
148+
if (options.additionalDriverInfo?.length > 0) {
149149
for (const { platform: p = '' } of options.additionalDriverInfo) {
150150
if (p.length > 0) {
151151
runtimeInfo = `${runtimeInfo}|${p}`;

0 commit comments

Comments
 (0)