-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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(common): prevent warning about oversize image twice #58021
Conversation
I’ve noticed that there was a loop inside a loop. Since we’re already iterating through `images` using `forEach`, it was running a `for` loop through `images` again. This was probably a mistake made when the functionality was initially added. The test actually verified that `logs.length` is `1`, but in the real environment, it logs twice (which is quite obvious due to the code). I’ve also added the missing file to the Bazel target.
Caretaker note: the presubmit looks good (only pre-existing failures), this PR is ready for merge. |
This PR was merged into the repository by commit b7bd429. The changes were merged into the following branches: main, 18.2.x |
I’ve noticed that there was a loop inside a loop. Since we’re already iterating through `images` using `forEach`, it was running a `for` loop through `images` again. This was probably a mistake made when the functionality was initially added. The test actually verified that `logs.length` is `1`, but in the real environment, it logs twice (which is quite obvious due to the code). I’ve also added the missing file to the Bazel target. PR Close #58021
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I’ve noticed that there was a loop inside a loop. Since we’re already iterating through
images
usingforEach
, it was running afor
loop throughimages
again. This was probably a mistake made when the functionality was initially added. The test actually verified thatlogs.length
is1
, but in the real environment, it logs twice (which is quite obvious due to the code).I’ve also added the missing file to the Bazel target.