Skip to content
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

Merged
merged 1 commit into from
Mar 16, 2022
Merged

[action] remove redundant errors.New() #3199

merged 1 commit into from
Mar 16, 2022

Conversation

dustinxie
Copy link
Member

No description provided.

@dustinxie dustinxie requested a review from a team as a code owner March 16, 2022 06:20
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")
Copy link
Member Author

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"},
Copy link
Member Author

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
Copy link

codecov bot commented Mar 16, 2022

Codecov Report

Merging #3199 (6eb5257) into master (ad44742) will not change coverage.
The diff coverage is 5.26%.

@@           Coverage Diff           @@
##           master    #3199   +/-   ##
=======================================
  Coverage   74.95%   74.95%           
=======================================
  Files         227      227           
  Lines       21205    21205           
=======================================
  Hits        15895    15895           
  Misses       4471     4471           
  Partials      839      839           
Impacted Files Coverage Δ
action/candidate_register.go 87.32% <0.00%> (ø)
action/candidate_update.go 92.20% <0.00%> (ø)
action/const.go 100.00% <ø> (ø)
action/envelope.go 88.02% <0.00%> (ø)
action/execution.go 76.92% <0.00%> (ø)
action/protocol/staking/protocol.go 68.70% <0.00%> (ø)
action/protocol/staking/validations.go 73.68% <ø> (ø)
action/putpollresult.go 76.66% <0.00%> (ø)
action/sealedenvelope.go 93.27% <0.00%> (ø)
action/stake_adddeposit.go 80.76% <0.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad44742...6eb5257. Read the comment docs.

@dustinxie dustinxie merged commit 8733fd8 into master Mar 16, 2022
@dustinxie dustinxie deleted the deser branch March 16, 2022 17:28
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.

3 participants