Skip to content

Conversation

@phenpessoa
Copy link
Contributor

Most parsers were returning a pointer to a struct type, resulting in unnecessary heap allocations.

This PR changes all parsers to return the struct they build itself, instead of a pointer to them.

Most parsers were returning a pointer to a struct type.
This makes an unnecessary heap allocation.

This commit changes all parsers to return
the struct they build itself, instead of a pointer to them.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tobiasehlert tobiasehlert self-requested a review October 8, 2023 21:56
@tobiasehlert tobiasehlert added the go Pull requests that update Go code label Oct 8, 2023
@tibiadata tibiadata deleted a comment from sonarqubecloud bot Oct 8, 2023
Copy link
Member

@tobiasehlert tobiasehlert left a comment

Choose a reason for hiding this comment

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

LGTM

@tobiasehlert tobiasehlert merged commit 42c5ee5 into tibiadata:main Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Development

Successfully merging this pull request may close these issues.

2 participants