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
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 } ` ;
You can’t perform that action at this time.
0 commit comments