Skip to content

Remove duplicate template execution code in container-toolkit.go#422

Merged
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:devel/toolkit
Jul 23, 2025
Merged

Remove duplicate template execution code in container-toolkit.go#422
ArangoGutierrez merged 1 commit intoNVIDIA:mainfrom
ArangoGutierrez:devel/toolkit

Conversation

@ArangoGutierrez
Copy link
Collaborator

The Execute method had redundant template execution logic that was already handled earlier in the function. This change removes the duplicate code block to clean up the implementation.

The Execute method had redundant template execution logic that was
already handled earlier in the function. This change removes the
duplicate code block to clean up the implementation.

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes duplicate template execution logic in the ContainerToolkit.Execute method. The same template execution code was being called twice with identical parameters and error handling.

  • Removes redundant containerTlktTemplate.Execute() call that was duplicating existing functionality
  • Cleans up the Execute method implementation by eliminating unnecessary code

@coveralls
Copy link

Pull Request Test Coverage Report for Build 16465948686

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 14.906%

Totals Coverage Status
Change from base Build 16345741632: -0.03%
Covered Lines: 261
Relevant Lines: 1751

💛 - Coveralls

@ArangoGutierrez ArangoGutierrez merged commit 8c6a120 into NVIDIA:main Jul 23, 2025
29 of 31 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.

3 participants