Skip to content

image/tarexport: fix some minor linting issues #48467

Merged
vvoland merged 3 commits intomoby:masterfrom
thaJeztah:image_tarexpost_cleanup
Sep 11, 2024
Merged

image/tarexport: fix some minor linting issues #48467
vvoland merged 3 commits intomoby:masterfrom
thaJeztah:image_tarexpost_cleanup

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

image/tarexport: rename variables that shadowed imports

image/tarexport: saveSession.save: remove redundant Platform

Commit 9160b9f removed the platform from
the descriptor, but this field was still used further in the code, and now
always taking an empty platform.

image/tarexport: saveSession.save: inline variables

Remove some intermediate variables that were only used in a single place.

Commit 9160b9f removed the platform from
the descriptor, but this field was still used further in the code, and now
always taking an empty platform.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Remove some intermediate variables that were only used in a single place.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Sep 10, 2024
@thaJeztah thaJeztah added this to the 28.0.0 milestone Sep 10, 2024
@thaJeztah
Copy link
Copy Markdown
Member Author

I was actually looking at some of the error-handling in this package, but didn't finish that yet, so pushing these firsts 😅

@thaJeztah thaJeztah self-assigned this Sep 10, 2024
@thaJeztah thaJeztah requested a review from vvoland September 11, 2024 08:41
@vvoland vvoland merged commit bcf105d into moby:master Sep 11, 2024
@thaJeztah thaJeztah deleted the image_tarexpost_cleanup branch September 11, 2024 10:57
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.

2 participants