[functions][js] default region via argument defaults not working in Babel7 - changed to inline or.

This commit is contained in:
Salakar 2018-08-17 20:12:25 +01:00
parent e13e98e010
commit 8ffa41b8ad
1 changed files with 2 additions and 2 deletions

View File

@ -46,9 +46,9 @@ function errorOrResult(possibleError): HttpsCallablePromise {
* -------------
*/
export default class Functions extends ModuleBase {
constructor(appOrRegion: App, region?: string = 'us-central1') {
constructor(appOrRegion: App, region?: string) {
let _app = appOrRegion;
let _region = region;
let _region = region || 'us-central1';
if (typeof _app === 'string') {
_region = _app;