Skip to content
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

Storage Emulator "Fast-Follow" Bug Fixes #3403

Merged
merged 7 commits into from
May 26, 2021
Merged

Conversation

@google-cla google-cla bot added the cla: yes Manual indication that this has passed CLA. label May 25, 2021
}

private deleteFieldsSetAsNull() {
const deletableFields: (keyof this)[] = [
Copy link
Contributor

@samtstern samtstern May 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just learned a new trick!


if (this.customMetadata) {
Object.keys(this.customMetadata).map((key: string) => {
if (!this.customMetadata) return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if seems to conflict with the outer if(this.customMetadata) ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't conflict cause it's saying "if I have custom metadata do this" then "if I dont have custom metadata dont do this" but it is weird cause it's like a double check. I had to add this cause typescript was getting confused and ignoring my explicit check of this.customMetadata in the outer if thinking it could still be undefined in the inner one so I had to check again.

Tho it occurs to me that if I use a for look it'll probably fix this so I'll probably just do that.

@abeisgoat abeisgoat merged commit a012838 into master May 26, 2021
devpeerapong pushed a commit to devpeerapong/firebase-tools that referenced this pull request Dec 14, 2021
@bkendall bkendall deleted the ah/storage-emu-ff-bugfixes branch March 18, 2022 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
2 participants