Skip to content

builder/builder-next: applySourcePolicies: remove redundant check and vars#48070

Merged
vvoland merged 1 commit intomoby:masterfrom
thaJeztah:build_next_nits
Jul 1, 2024
Merged

builder/builder-next: applySourcePolicies: remove redundant check and vars#48070
vvoland merged 1 commit intomoby:masterfrom
thaJeztah:build_next_nits

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

  • the check for ok was redundant as the line above it would return early
  • the t and ok variable declaration was redundant, as all variables to the left of the strings.Cut were locally scoped variables.

- A picture of a cute animal (not mandatory but encouraged)

… vars

- the check for `ok` was redundant as the line above it would return early
- the `t` and `ok` variable declaration was redundant, as all variables to
  the left of the `strings.Cut` were locally scoped variables.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah requested a review from tonistiigi as a code owner June 27, 2024 11:16
@thaJeztah thaJeztah self-assigned this Jun 27, 2024
@vvoland vvoland added this to the 28.0.0 milestone Jul 1, 2024
@vvoland vvoland merged commit 27f0a59 into moby:master Jul 1, 2024
@thaJeztah thaJeztah deleted the build_next_nits branch July 1, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants