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

Handle nil test.name #69

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Handle nil test.name #69

merged 1 commit into from
Feb 21, 2024

Conversation

tlindsay
Copy link
Contributor

@tlindsay tlindsay commented Feb 9, 2024

I assume the treesitter API changed (again) and caused this to start breaking. If I try to run debug_test() outside of a test file, then I get an exception for trying to concatenate a nil value. This commit just fixes the "no test found" short-circuit clause to handle empty string or nil.

I assume the treesitter API changed (again) and caused this to start
breaking. If I try to run `debug_test()` outside of a test file, then I
get an exception for trying to concatenate a nil value. This commit just
fixes the "no test found" short-circuit clause to handle empty string or
nil.
Copy link
Owner

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

Thank you!
LGTM

@leoluz leoluz merged commit 64f7340 into leoluz:main Feb 21, 2024
2 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