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: fix linting issues #162

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Conversation

behouba
Copy link
Contributor

@behouba behouba commented Mar 4, 2024

This PR fixes linting issues reported by the latest version of golangci-lint.

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 50.50%. Comparing base (b86dc4f) to head (d52ba61).
Report is 1 commits behind head on master.

Files Patch % Lines
features.go 0.00% 1 Missing ⚠️
main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #162   +/-   ##
=======================================
  Coverage   50.50%   50.50%           
=======================================
  Files          24       24           
  Lines        2865     2865           
=======================================
  Hits         1447     1447           
  Misses       1220     1220           
  Partials      198      198           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Add fixes for performance-related linting issues identified by the
perfsprint linter introduced in golangci-lint v1.55.0. perfsprint
is a linter for performance, aiming at usages of fmt.Sprintf which
have faster alternatives in the standard library. This commit fixes
linting issues reported by perfsprint, including:

- Replacing instances of fmt.Sprint with faster alternatives like
strconv.FormatUint and utilizing string addition in place of fmt.Sprintf.

- Eliminating unnecessary use of fmt.Errorf by replacing it with the more
concise errors.New.

Signed-off-by: Kouame Behouba Manasse <behouba@gmail.com>
@rst0git rst0git merged commit 5d0d8f1 into checkpoint-restore:master Mar 4, 2024
14 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.

None yet

2 participants