gossamer icon indicating copy to clipboard operation
gossamer copied to clipboard

refactor: use slices.Contains to simplify code

Open shandongzhejiang opened this issue 8 months ago • 3 comments

Changes

There is a new function added in the go1.21 standard library, which can make the code more concise and easy to read.

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

shandongzhejiang avatar Jun 25 '25 06:06 shandongzhejiang

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 25 '25 06:06 CLAassistant

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 51.16%. Comparing base (d1ca7aa) to head (f1fafac). Report is 358 commits behind head on development.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #4787      +/-   ##
===============================================
+ Coverage        50.51%   51.16%   +0.65%     
===============================================
  Files              230      395     +165     
  Lines            29006    54018   +25012     
===============================================
+ Hits             14653    27641   +12988     
- Misses           12856    23985   +11129     
- Partials          1497     2392     +895     
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Jun 26 '25 08:06 codecov[bot]

Sorry for deal it so late.

Modified. Please review it when you have time. 😄

shandongzhejiang avatar Jul 10 '25 17:07 shandongzhejiang