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

Made sure var 'pos' was only assigned locally to function #14027

Merged
merged 1 commit into from Nov 23, 2023

Conversation

ZenonSeth
Copy link
Contributor

The function is assigning to a var named pos but it was not declared as local, instead it was assigning to a global variable. Considering it's a really common name for a var, which messes with IDE linting, and that the fix is tiny, I think it's worth just making it local.

To do

Ready for Review.

How to test

n/a

@Desour
Copy link
Member

Desour commented Nov 22, 2023

We should use luacheck for our wireshark dissector, same as for any other lua code.

@Desour Desour added Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines Bugfix 🐛 PRs that fix a bug labels Nov 22, 2023
@appgurueu
Copy link
Contributor

appgurueu commented Nov 23, 2023

@Desour fwiw, trivial PRs require only one approval afaik. You could hit merge right away.

@Desour
Copy link
Member

Desour commented Nov 23, 2023

I know, but I don't want to do this immediately after I was the one to add the trivial tag.

@Desour Desour merged commit 6783734 into minetest:master Nov 23, 2023
cx384 pushed a commit to cx384/minetest that referenced this pull request Dec 9, 2023
kawogi pushed a commit to kawogi/minetest that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix 🐛 PRs that fix a bug One approval ✅ ◻️ Trivial The change is a trivial bug fix, documentation or maintenance change, as per the Git Guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants