-
Notifications
You must be signed in to change notification settings - Fork 943
Firestore: firestore_client.ts: async getConfiguration() -> get configuration() #7908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firestore: firestore_client.ts: async getConfiguration() -> get configuration() #7908
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
@@ -254,7 +254,7 @@ export async function setOnlineComponentProvider( | |||
const offlineComponentProvider = await ensureOfflineComponents(client); | |||
|
|||
logDebug(LOG_TAG, 'Initializing OnlineComponentProvider'); | |||
const configuration = await client.getConfiguration(); | |||
const configuration = await client.configuration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the await
here, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is a minor implementation detail change in Firestore where a method was unnecessarily declared as
async
and was change to a simple property access. This has little (if any) performance improvement but makes the code a bit clearer for future readers. No functionality was changed.