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

chore(linters): replacing 'fmt.Errorf' with 'errors.New' wherever possible #14698

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

zak-pawel
Copy link
Collaborator

The perfsprint linter recently introduced a new check detecting places where a faster errors.New can be used instead of fmt.Errorf when the error message does not need to be formatted.

golangci-lint in its latest version (v1.56.0) introduces a newer version of the perfsprint linter, so this PR "prepares" the code for the integration of the latest golangci-lint.

@telegraf-tiger telegraf-tiger bot added the chore label Feb 7, 2024
# Conflicts:
#	plugins/inputs/snmp_trap/snmp_trap.go
#	tools/package_incus_test/container.go
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented Feb 7, 2024

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks for your effort @zak-pawel!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Feb 8, 2024
@DStrand1 DStrand1 merged commit ae7fbc5 into influxdata:master Feb 8, 2024
26 checks passed
@github-actions github-actions bot added this to the v1.29.5 milestone Feb 8, 2024
powersj pushed a commit that referenced this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore linter ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants