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

Avoid anon closure #817

Merged
merged 1 commit into from
Dec 11, 2022
Merged

Avoid anon closure #817

merged 1 commit into from
Dec 11, 2022

Conversation

dnfield
Copy link
Owner

@dnfield dnfield commented Dec 11, 2022

}, message, debugLabel: 'Load Bytes');
});
});
return svg.cache.putIfAbsent(cacheKey(context), () => _load(context));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't this still an anonymous closure?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Hm. Yes. But it doesn't give me the runtime error

Copy link
Owner Author

Choose a reason for hiding this comment

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

I'm confused about why but uh also have other things going on haha

Copy link
Collaborator

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM!

@dnfield dnfield merged commit 3d48ca2 into master Dec 11, 2022
@dnfield dnfield deleted the closure branch December 11, 2022 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants