File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export function makeClientMetadata(options: MakeClientMetadataOptions): ClientMe
123
123
} ;
124
124
125
125
// This is where we handle additional driver info added after client construction.
126
- if ( options . additionalDriverInfo . length > 0 ) {
126
+ if ( options . additionalDriverInfo ? .length > 0 ) {
127
127
for ( const { name : n = '' , version : v = '' } of options . additionalDriverInfo ) {
128
128
if ( n . length > 0 ) {
129
129
driverInfo . name = `${ driverInfo . name } |${ n } ` ;
@@ -145,7 +145,7 @@ export function makeClientMetadata(options: MakeClientMetadataOptions): ClientMe
145
145
runtimeInfo = `${ runtimeInfo } |${ platform } ` ;
146
146
}
147
147
148
- if ( options . additionalDriverInfo . length > 0 ) {
148
+ if ( options . additionalDriverInfo ? .length > 0 ) {
149
149
for ( const { platform : p = '' } of options . additionalDriverInfo ) {
150
150
if ( p . length > 0 ) {
151
151
runtimeInfo = `${ runtimeInfo } |${ p } ` ;
You can’t perform that action at this time.
0 commit comments