-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
4 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters