Skip to content

Commit

Permalink
Simplify AwaitComment
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Aug 19, 2019
1 parent 58eafdd commit 4b6804e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/gen/awaitComments.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,10 @@ Or (for Jobs): The Pod succeeded ('.status.phase' set to "Succeeded").
func AwaitComment(kind string) string {
const prefix = "\n\n"

style := func(comment string) string {
return prefix + comment
}

k := kinds.Kind(kind)
switch k {
case kinds.Deployment, kinds.Ingress, kinds.Pod, kinds.Service, kinds.StatefulSet:
return style(comments(k))
return prefix + comments(k)
default:
return ""
}
Expand Down

0 comments on commit 4b6804e

Please sign in to comment.