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 tar test. #1409

Merged
merged 1 commit into from
Mar 10, 2020
Merged

Fix tar test. #1409

merged 1 commit into from
Mar 10, 2020

Conversation

porridge
Copy link
Member

What this PR does / why we need it:

The os.Open calls were always returning a nil and an error, so the
test was joyfully comparing that nil==nil.

This highlights the importance of not ignoring errors.

Signed-off-by: Marcin Owsiany mowsiany@D2iQ.com

The `os.Open` calls were always returning a nil and an error, so the
test was joyfully comparing that nil==nil.

This highlights the importance of *not* ignoring errors.

Signed-off-by: Marcin Owsiany <mowsiany@D2iQ.com>
Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

🚢

Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

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

lgtm

@kensipe kensipe merged commit 221e1ba into master Mar 10, 2020
@kensipe kensipe deleted the fix-test branch March 10, 2020 18:37
runyontr pushed a commit that referenced this pull request Mar 11, 2020
The `os.Open` calls were always returning a nil and an error, so the
test was joyfully comparing that nil==nil.

This highlights the importance of *not* ignoring errors.

Signed-off-by: Marcin Owsiany <mowsiany@D2iQ.com>
Signed-off-by: Thomas Runyon <runyontr@gmail.com>
zen-dog pushed a commit that referenced this pull request Mar 11, 2020
The `os.Open` calls were always returning a nil and an error, so the
test was joyfully comparing that nil==nil.

This highlights the importance of *not* ignoring errors.

Signed-off-by: Marcin Owsiany <mowsiany@D2iQ.com>
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