Skip to content

Conversation

@thaJeztah
Copy link
Member

The strslice.StrSlice type is a string-slice with a custom JSON Unmarshal function to provide backward-compatibility with older API requests (see moby@17d6f00 and moby@ea4a067).

Given that the type is assigned implicitly through the fields on HostConfig, we can just use a regular []string instead.

- A picture of a cute animal (not mandatory but encouraged)

The strslice.StrSlice type is a string-slice with a custom JSON Unmarshal
function to provide backward-compatibility with older API requests (see
[moby@17d6f00] and [moby@ea4a067]).

Given that the type is assigned implicitly through the fields on HostConfig,
we can just use a regular []string instead.

[moby@17d6f00]: moby/moby@17d6f00
[moby@ea4a067]: moby/moby@ea4a067

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 28.3.1 milestone Jul 1, 2025
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Jul 1, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.82%. Comparing base (7cbee73) to head (e7e238e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6158      +/-   ##
==========================================
- Coverage   54.82%   54.82%   -0.01%     
==========================================
  Files         364      364              
  Lines       30470    30467       -3     
==========================================
- Hits        16706    16703       -3     
  Misses      12789    12789              
  Partials      975      975              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thaJeztah thaJeztah merged commit 8403869 into docker:master Jul 2, 2025
110 of 112 checks passed
@thaJeztah thaJeztah deleted the reduce_strslice branch July 2, 2025 15:42
@thaJeztah thaJeztah modified the milestones: 28.3.1, 28.3.2 Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants