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

A suggestion for the removeEntry function in the DiskLruCache class #8417

Open
rladmsdh opened this issue May 22, 2024 · 0 comments
Open

A suggestion for the removeEntry function in the DiskLruCache class #8417

rladmsdh opened this issue May 22, 2024 · 0 comments
Labels
enhancement Feature not a bug

Comments

@rladmsdh
Copy link

In the existing code, we used the let function to work with the JournalWriter in the RemoveEntry function. Using Apply instead of let allows you to remove the unnecessary it and access the object's methods directly.
Additionally, the completeEdit function in the same file also uses apply as a scope function for journalWriter, so it will help maintain the code style.

@rladmsdh rladmsdh added the enhancement Feature not a bug label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature not a bug
Projects
None yet
Development

No branches or pull requests

1 participant