Skip to content

Commit 7fd3f40

Browse files
authored
Remove redundant new lines in sdk.go and role-writer templates (#489)
Remove redundant new lines in `sdk.go` and `role-writer.yaml` templates Signed-off-by: Amine Hilaly <[email protected]> By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent af2855c commit 7fd3f40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/helm/templates/role-writer.yaml.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rules:
1111
resources:
1212
{{- range $crdName := .CRDNames }}
1313
- {{ $crdName }}
14-
{{ end }}
14+
{{- end }}
1515
verbs:
1616
- create
1717
- delete

templates/pkg/resource/sdk.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (rm *resourceManager) sdkDelete(
145145
exit(err)
146146
}()
147147

148-
{{ if .CRD.CustomDeleteMethodName }}
148+
{{- if .CRD.CustomDeleteMethodName }}
149149
{{- template "sdk_delete_custom" . }}
150150
{{- else if .CRD.Ops.Delete }}
151151
{{- if $hookCode := Hook .CRD "sdk_delete_pre_build_request" }}

0 commit comments

Comments
 (0)