mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
fix lint error
This commit is contained in:
@@ -169,13 +169,13 @@ func (m Merger) SetComments(sources walk.Sources) error {
|
||||
// avoid panic
|
||||
return nil
|
||||
}
|
||||
if source != nil && source.YNode().FootComment != "" {
|
||||
if source.YNode().FootComment != "" {
|
||||
dest.YNode().FootComment = source.YNode().FootComment
|
||||
}
|
||||
if source != nil && source.YNode().HeadComment != "" {
|
||||
if source.YNode().HeadComment != "" {
|
||||
dest.YNode().HeadComment = source.YNode().HeadComment
|
||||
}
|
||||
if source != nil && source.YNode().LineComment != "" {
|
||||
if source.YNode().LineComment != "" {
|
||||
dest.YNode().LineComment = source.YNode().LineComment
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user