Navigation Menu

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

Silence a "potentially unused parameter" warning #1617

Merged
merged 1 commit into from Jul 21, 2022

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jul 20, 2022

configBlobImageSource.f is only called if the digest is exactly one value, so the function doesn't need to use it (and none of them do). So, remove it; this also drops a recently-introduced warning in VS Code.

Should not change (test) behavior.

@rhatdan
Copy link
Member

rhatdan commented Jul 20, 2022

LGTM
@vrothberg PTAL

configBlobImageSource.f is only called if the digest
is exactly one value, so the function doesn't need to
use it (and none of them do).  So, remove it; this also
drops a recently-introduced warning in VS Code.

Should not change (test) behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@vrothberg vrothberg merged commit bf19265 into containers:main Jul 21, 2022
@mtrmac mtrmac deleted the unused-param branch July 21, 2022 13:37
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