Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

chore(pkg): replace fmt.Errorf() with errors.New() if no param required#759

Merged
davidtaikocha merged 2 commits into
taikoxyz:mainfrom
bodhi-crypo:main
Apr 24, 2024
Merged

chore(pkg): replace fmt.Errorf() with errors.New() if no param required#759
davidtaikocha merged 2 commits into
taikoxyz:mainfrom
bodhi-crypo:main

Conversation

@bodhi-crypo
Copy link
Copy Markdown
Contributor

similar to:ethereum/go-ethereum#27329

string formatting takes time (even if there's nothing to format), and also that the errors.New is optimized away.

@bodhi-crypo bodhi-crypo changed the title pkg,prover:replace fmt.Errorf() with errors.New() if no param required chore(pkg,prover):replace fmt.Errorf() with errors.New() if no param required Apr 24, 2024
@davidtaikocha davidtaikocha changed the title chore(pkg,prover):replace fmt.Errorf() with errors.New() if no param required chore(pkg): replace fmt.Errorf() with errors.New() if no param required Apr 24, 2024
@davidtaikocha davidtaikocha enabled auto-merge (squash) April 24, 2024 13:25
@davidtaikocha davidtaikocha merged commit 693be48 into taikoxyz:main Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants