Skip to content

Commit 0078d80

Browse files
committed
code review incorporation :- kartik 2
1 parent ebcfd49 commit 0078d80

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pkg/generateManifest/adapter.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ package generateManifest
22

33
func ConvertPointerDeploymentTemplateResponseToNonPointer(r *DeploymentTemplateResponse) DeploymentTemplateResponse {
44
if r != nil {
5-
return DeploymentTemplateResponse{
6-
Data: r.Data,
7-
ResolvedData: r.ResolvedData,
8-
VariableSnapshot: r.VariableSnapshot,
9-
TemplateVersion: r.TemplateVersion,
10-
IsAppMetricsEnabled: r.IsAppMetricsEnabled,
11-
}
5+
return *r
126
}
137
return DeploymentTemplateResponse{}
148
}

0 commit comments

Comments
 (0)