8000 sliceop: use errors.New for constant errors by dolmen · Pull Request #940 · go-hep/hep · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

sliceop: use errors.New for constant errors - #940

Merged
sbinet merged 1 commit into
go-hep:mainfrom
dolmen-go:sliceop-errors.New
May 10, 2022
Merged

sbinet merged 1 commit into
go-hep:mainfrom
dolmen-go:sliceop-errors.New

Conversation

@dolmen
@dolmen dolmen commented Apr 27, 2022
Copy link
Copy Markdown
Contributor

Use errors.New instead of fmt.Errorf when the message is a constant string.

use errors.New instead of fmt.Errorf when the message is a constant
string.
@dolmen

This comment was marked as off-topic.

@sbinet sbinet left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@sbinet
sbinet merged commit 07f22fc into go-hep:main May 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0