-
Notifications
You must be signed in to change notification settings - Fork 324
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
[action] remove redundant errors.New() #3199
Conversation
ErrGasLimit = errors.New("exceeds block gas limit") | ||
ErrOversizedData = errors.New("oversized data") | ||
ErrNilProto = errors.New("empty action proto to load") | ||
ErrNilAction = errors.New("nil action to load proto") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the error text is self-explanatory, so remove the comment
@@ -36,7 +36,7 @@ func TestLoadErrorDescription(t *testing.T) { | |||
{ErrAddress, ErrAddress.Error()}, | |||
{ErrNegativeValue, ErrNegativeValue.Error()}, | |||
{ErrNilAction, "Unknown"}, | |||
{ErrEmptyActionPool, "Unknown"}, | |||
{ErrNilProto, "Unknown"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the name is a typo, should be Proto not ActionPool
Codecov Report
@@ Coverage Diff @@
## master #3199 +/- ##
=======================================
Coverage 74.95% 74.95%
=======================================
Files 227 227
Lines 21205 21205
=======================================
Hits 15895 15895
Misses 4471 4471
Partials 839 839
Continue to review full report at Codecov.
|
No description provided.