Skip to content

fix gtTrace for zero-argument functions#6

Open
zeniko wants to merge 1 commit intofeenkcom:mainfrom
zeniko:gtTrace-fix
Open

fix gtTrace for zero-argument functions#6
zeniko wants to merge 1 commit intofeenkcom:mainfrom
zeniko:gtTrace-fix

Conversation

@zeniko
Copy link

@zeniko zeniko commented Mar 18, 2025

gtTrace checks the name of a method's first argument in order to determine whether it's 'self' (which is customarily used in object methods). It does however not check whether there are any arguments at all, causing gtTrace to fail for standalone functions without any arguments.

This fix adds a check on whether there are any arguments before accessing the name of the first argument.

…rmine whether it's 'self' (which is customarily used in object methods). It does however not check whether there are any arguments at all, causing gtTrace to fail for standalone functions without any arguments.

This fix adds a check on whether there are any arguments before
accessing the name of the first argument.
@feenk-cla-helper
Copy link

[This is an automated comment from the feenk Contributor License Agreement robot.]

Hello zeniko!

Thanks for your interest in making software development better. Please sign the feenk Contributor License Agreement so we can investigate merging in your work.

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.

1 participant

Comments