Skip to content

all: use errors.New() when there is no param rather than fmt.Errorf()#2247

Merged
zzzckck merged 9 commits intobnb-chain:developfrom
yasyzb:fix-fmt-errorf
Mar 11, 2024
Merged

all: use errors.New() when there is no param rather than fmt.Errorf()#2247
zzzckck merged 9 commits intobnb-chain:developfrom
yasyzb:fix-fmt-errorf

Conversation

@yasyzb
Copy link
Copy Markdown
Contributor

@yasyzb yasyzb commented Mar 1, 2024

Description

There are many fmt.Errorf() with no param.

Rationale

Parameterless errors should be using errors.New instead of fmt.Errorf.

Example

errors.New("invalid hex data")

Changes

Notable changes:

  • replace fmt.Errorf which has no param with errors.New

@zzzckck zzzckck changed the base branch from master to develop March 11, 2024 06:32
@zzzckck zzzckck merged commit 6386172 into bnb-chain:develop Mar 11, 2024
@zzzckck
Copy link
Copy Markdown
Collaborator

zzzckck commented Mar 11, 2024

thx

@yasyzb yasyzb deleted the fix-fmt-errorf branch March 11, 2024 08:17
abicky added a commit to abicky/bsc that referenced this pull request May 11, 2025
This file appears to have been unintentionally added in bnb-chain#2247.
abicky added a commit to abicky/bsc that referenced this pull request May 12, 2025
This file appears to have been unintentionally added in bnb-chain#2247.
abicky added a commit to abicky/bsc that referenced this pull request May 12, 2025
This file appears to have been unintentionally added in bnb-chain#2247.
alex-10072 pushed a commit that referenced this pull request May 12, 2025
This file appears to have been unintentionally added in #2247.
galaio pushed a commit to galaio/bsc that referenced this pull request May 29, 2025
This file appears to have been unintentionally added in bnb-chain#2247.
galaio pushed a commit to galaio/bsc that referenced this pull request May 29, 2025
This file appears to have been unintentionally added in bnb-chain#2247.
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.

4 participants