Skip to content

Conversation

@kevpar
Copy link
Member

@kevpar kevpar commented Feb 1, 2022

Correctly uses a named return value on createPod. Previously if err was
redeclared in a nested scope and then returned, defers would not see the
returned error value. In particular this prevented the UVM cleanup defer
from working properly.

Signed-off-by: Kevin Parsons [email protected]

Correctly uses a named return value on createPod. Previously if err was
redeclared in a nested scope and then returned, defers would not see the
returned error value. In particular this prevented the UVM cleanup defer
from working properly.

Signed-off-by: Kevin Parsons <[email protected]>
@kevpar kevpar requested a review from a team as a code owner February 1, 2022 22:36
Copy link
Contributor

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

LGTM, going to assume CI will be happy here

@kevpar kevpar merged commit 95e0bcc into master Feb 1, 2022
@helsaawy helsaawy deleted the createpod-err-shadow branch May 23, 2022 20:32
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.

4 participants