From a27e1bddf2a33572e2670420492b626fa6d90b48 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 29 Sep 2023 13:08:36 +0200 Subject: [PATCH] Ignore irrelevant return value (it is always nil). Signed-off-by: Felix Fontein --- stores/yaml/store.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stores/yaml/store.go b/stores/yaml/store.go index 1481dff8f..51ce25426 100644 --- a/stores/yaml/store.go +++ b/stores/yaml/store.go @@ -204,9 +204,9 @@ func (store *Store) appendSequence(in []interface{}, sequence *yaml.Node) { } if len(comments) > 0 { if beginning { - comments = store.addCommentsHead(sequence, comments) + store.addCommentsHead(sequence, comments) } else { - comments = store.addCommentsFoot(sequence.Content[len(sequence.Content)-1], comments) + store.addCommentsFoot(sequence.Content[len(sequence.Content)-1], comments) } } } @@ -231,9 +231,9 @@ func (store *Store) appendTreeBranch(branch sops.TreeBranch, mapping *yaml.Node) } if len(comments) > 0 { if beginning { - comments = store.addCommentsHead(mapping, comments) + store.addCommentsHead(mapping, comments) } else { - comments = store.addCommentsFoot(mapping.Content[len(mapping.Content)-2], comments) + store.addCommentsFoot(mapping.Content[len(mapping.Content)-2], comments) } } }