Commit bc01643
committed
fix(fleetcontrol): use type conversion instead of struct literal for tag conversion
Changed from struct literal to direct type conversion when converting
EntityManagementTag to FleetControlTag, as both types have identical
structure. This resolves gosimple linter warning S1016.
- Before: fleetcontrol.FleetControlTag{Key: tag.Key, Values: tag.Values}
- After: fleetcontrol.FleetControlTag(tag)1 parent 0d463f9 commit bc01643
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
| 588 | + | |
592 | 589 | | |
593 | 590 | | |
594 | 591 | | |
| |||
0 commit comments