File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
packages/firestore/src/platform_browser Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -415,16 +415,16 @@ export class WebChannelConnection implements Connection {
415
415
makeUrl ( rpcName : string ) : string {
416
416
const urlRpcName = RPC_NAME_REST_MAPPING [ rpcName ] ;
417
417
assert ( urlRpcName !== undefined , 'Unknown REST mapping for: ' + rpcName ) ;
418
- const url = [ this . baseUrl , '/' , RPC_URL_VERSION ] ;
419
- url . push ( '/projects/' ) ;
420
- url . push ( this . databaseId . projectId ) ;
421
-
422
- url . push ( '/databases/' ) ;
423
- url . push ( this . databaseId . database ) ;
424
- url . push ( '/documents' ) ;
425
-
426
- url . push ( ':' ) ;
427
- url . push ( urlRpcName ) ;
428
- return url . join ( '' ) ;
418
+ return (
419
+ this . baseUrl +
420
+ '/' +
421
+ RPC_URL_VERSION +
422
+ '/projects/' +
423
+ this . databaseId . projectId +
424
+ '/databases/' +
425
+ this . databaseId . database +
426
+ '/documents:' +
427
+ urlRpcName
428
+ ) ;
429
429
}
430
430
}
You can’t perform that action at this time.
0 commit comments