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

fix: types: remove unnecessary/pedantic code from removeZeroCoins #13967

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

odeke-em
Copy link
Collaborator

Simplifies and makes clearer the code in removeZeroCoins by removing unnecessary checks that boiled down to still running in the same final for loop.

Fixes #13958

Simplifies and makes clearer the code in removeZeroCoins by
removing unnecessary checks that boiled down to still running
in the same final for loop.

Fixes #13958
@sonarcloud
Copy link

sonarcloud bot commented Nov 22, 2022

[Cosmos SDK] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Nov 22, 2022

Codecov Report

Merging #13967 (32b68f2) into main (d6da703) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #13967      +/-   ##
==========================================
- Coverage   56.35%   56.22%   -0.13%     
==========================================
  Files         676      667       -9     
  Lines       56989    56576     -413     
==========================================
- Hits        32115    31811     -304     
+ Misses      22261    22184      -77     
+ Partials     2613     2581      -32     
Impacted Files Coverage Δ
types/coin.go 94.41% <100.00%> (-0.10%) ⬇️
x/staking/simulation/operations.go 74.54% <0.00%> (-1.38%) ⬇️
tx/textual/valuerenderer/duration.go
tx/textual/valuerenderer/string.go
tx/textual/valuerenderer/dec.go
tx/textual/valuerenderer/coins.go
tx/textual/valuerenderer/timestamp.go
tx/textual/valuerenderer/message.go
tx/textual/valuerenderer/valuerenderer.go
tx/textual/valuerenderer/int.go
... and 2 more

@tac0turtle tac0turtle merged commit 2739f83 into main Nov 22, 2022
@tac0turtle tac0turtle deleted the types-remove-unnecessary-code-from-removeZeroCoins branch November 22, 2022 11:24
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.

types: unnecessary code inside removeZeroCoins adding extra runtime and less readability
4 participants