refactor: omit unnecessary reassignment

Signed-off-by: joemicky <joemickychang@outlook.com>
pull/31134/head
joemicky 1 month ago
parent e1b9173812
commit 762ef3ee80

@ -890,7 +890,6 @@ func TestNameAndChartGenerateName(t *testing.T) {
}
for _, tc := range tests {
tc := tc
t.Run(tc.Name, func(t *testing.T) {
t.Parallel()

@ -63,7 +63,6 @@ func loadPlugins(baseCmd *cobra.Command, out io.Writer) {
// Now we create commands for all of these.
for _, plug := range found {
plug := plug
md := plug.Metadata
if md.Usage == "" {
md.Usage = fmt.Sprintf("the %q plugin", md.Name)

@ -160,7 +160,6 @@ func TestLoadIndex(t *testing.T) {
}
for _, tc := range tests {
tc := tc
t.Run(tc.Name, func(t *testing.T) {
t.Parallel()
i, err := LoadIndexFile(tc.Filename)

Loading…
Cancel
Save