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

Remove logic that may not be useful #302

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Remove logic that may not be useful #302

merged 1 commit into from
Feb 1, 2024

Conversation

weartist
Copy link
Contributor

It seems that this judgment will always be followed by the result

It seems that this judgment will always be followed by the result
@kylechui
Copy link
Owner

That code is to check if the normal-mode delimiters are already in cache, and only fetch them if they are not in cache.

@weartist
Copy link
Contributor Author

weartist commented Feb 1, 2024

That code is to check if the normal-mode delimiters are already in cache, and only fetch them if they are not in cache.

But here's a judgment, if it is executed, it must be worthless?

if not cache.normal.delimiters then

@kylechui
Copy link
Owner

kylechui commented Feb 1, 2024

Woops, completely missed that. Thanks for the catch!

@kylechui kylechui merged commit f81bbef into kylechui:main Feb 1, 2024
4 checks passed
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