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: code optimization #3135

Merged
merged 1 commit into from
May 31, 2023
Merged

fix: code optimization #3135

merged 1 commit into from
May 31, 2023

Conversation

testwill
Copy link
Contributor

No description provided.

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
@codecov-commenter
Copy link

Codecov Report

Merging #3135 (cefff24) into master (c6f9c0d) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3135      +/-   ##
==========================================
+ Coverage   61.69%   61.78%   +0.09%     
==========================================
  Files         154      154              
  Lines       31120    31117       -3     
==========================================
+ Hits        19198    19226      +28     
+ Misses      10377    10347      -30     
+ Partials     1545     1544       -1     

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Comment on lines 16 to -17
"github.com/docker/docker/api/types/container"
containertypes "github.com/docker/docker/api/types/container"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch on these 👍

still wondering what linter we don't have enabled that would catch these (I'm sure there's a linter somewhere in golangci-lint that should warn about these)

@thaJeztah thaJeztah merged commit 6675724 into moby:master May 31, 2023
7 checks passed
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.

None yet

3 participants