Skip to content

Commit 46d3394

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 8225500 commit 46d3394

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apis/placement/v1beta1/clusterresourceplacement_types.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,8 +1383,7 @@ func (m *ResourcePlacement) GetCondition(conditionType string) *metav1.Condition
13831383

13841384
// GetPlacementSpec returns the placement spec.
13851385
func (m *ResourcePlacement) GetPlacementSpec() *PlacementSpec {
1386-
spec := m.Spec
1387-
return &spec
1386+
return &m.Spec
13881387
}
13891388

13901389
// SetPlacementSpec sets the placement spec.
@@ -1396,8 +1395,7 @@ func (m *ResourcePlacement) SetPlacementSpec(spec *PlacementSpec) {
13961395

13971396
// GetPlacementStatus returns the placement status.
13981397
func (m *ResourcePlacement) GetPlacementStatus() *PlacementStatus {
1399-
status := m.Status
1400-
return &status
1398+
return &m.Status
14011399
}
14021400

14031401
// SetPlacementStatus sets the placement status.

0 commit comments

Comments
 (0)