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

[CAD-3907] check to see if stat result is nil #3

Merged
merged 1 commit into from
Nov 5, 2018
Merged

Conversation

decarboxy
Copy link
Collaborator

If the file doesn't exist, the return value of os.Stat is nil, which is actually what we want. we need to do a nil check before looking for an error code so that the exec container doesnt panic.

@decarboxy decarboxy closed this Nov 5, 2018
@decarboxy decarboxy reopened this Nov 5, 2018
@decarboxy decarboxy merged commit 351d395 into release-2.2 Nov 5, 2018
@decarboxy decarboxy deleted the CAD-3907 branch November 5, 2018 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants