@@ -314,9 +314,9 @@ DiscoveryV1.prototype.addDocument = function(params, callback) {
314
314
if ( formDataParams . file ) {
315
315
if (
316
316
typeof formDataParams . file . filename !== 'string' &&
317
- ! ( formDataParams . file . options && typeof formDataParams . file . options . filename !== 'string' ) &&
318
- ! ( formDataParams . file . path && typeof formDataParams . file . path !== 'string' ) &&
319
- ! ( formDataParams . file . name && typeof formDataParams . file . name !== 'string' )
317
+ ! ( formDataParams . file . options && typeof formDataParams . file . options . filename !== 'string' ) &&
318
+ ! ( formDataParams . file . path && typeof formDataParams . file . path !== 'string' ) &&
319
+ ! ( formDataParams . file . name && typeof formDataParams . file . name !== 'string' )
320
320
) {
321
321
const filedat = formDataParams . file ;
322
322
// the filename used below is because the name must exist
@@ -361,9 +361,9 @@ DiscoveryV1.prototype.updateDocument = function(params, callback) {
361
361
if ( formDataParams . file ) {
362
362
if (
363
363
typeof formDataParams . file . filename !== 'string' &&
364
- ! ( formDataParams . file . options && typeof formDataParams . file . options . filename !== 'string' ) &&
365
- ! ( formDataParams . file . path && typeof formDataParams . file . path !== 'string' ) &&
366
- ! ( formDataParams . file . name && typeof formDataParams . file . name !== 'string' )
364
+ ! ( formDataParams . file . options && typeof formDataParams . file . options . filename !== 'string' ) &&
365
+ ! ( formDataParams . file . path && typeof formDataParams . file . path !== 'string' ) &&
366
+ ! ( formDataParams . file . name && typeof formDataParams . file . name !== 'string' )
367
367
) {
368
368
const filedat = formDataParams . file ;
369
369
// the filename used below is because the name must exist
0 commit comments