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

refactor copy.chown code and add more tests #1027

Merged
merged 2 commits into from
Feb 7, 2020

Conversation

tejal29
Copy link
Member

@tejal29 tejal29 commented Feb 5, 2020

Refactoring code in #962 and adding more tests

@googlebot googlebot added the cla: yes CLA signed by all commit authors label Feb 5, 2020
@tejal29 tejal29 changed the title refactor and add more tests refactor copy.chown code and add more tests Feb 5, 2020
@tejal29 tejal29 merged commit 8d9e6b8 into GoogleContainerTools:master Feb 7, 2020
}
chown, err := util.ResolveEnvironmentReplacement(chownStr, env, false)
if err != nil {
return -1, -1, err
Copy link
Contributor

Choose a reason for hiding this comment

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

Why -1 and not util.DoNotChangeUID ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The return value here should be ignored since err is not nil.
I did not use the util.DoNotChangeUID since the return value does not matter.

@tejal29 tejal29 deleted the small_refacto branch April 26, 2021 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA signed by all commit authors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants