mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Ignore irrelevant return value (it is always nil).
Signed-off-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
committed by
Hidde Beydals
parent
ee1513a1a5
commit
a27e1bddf2
@@ -204,9 +204,9 @@ func (store *Store) appendSequence(in []interface{}, sequence *yaml.Node) {
|
|||||||
}
|
}
|
||||||
if len(comments) > 0 {
|
if len(comments) > 0 {
|
||||||
if beginning {
|
if beginning {
|
||||||
comments = store.addCommentsHead(sequence, comments)
|
store.addCommentsHead(sequence, comments)
|
||||||
} else {
|
} 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 len(comments) > 0 {
|
||||||
if beginning {
|
if beginning {
|
||||||
comments = store.addCommentsHead(mapping, comments)
|
store.addCommentsHead(mapping, comments)
|
||||||
} else {
|
} else {
|
||||||
comments = store.addCommentsFoot(mapping.Content[len(mapping.Content)-2], comments)
|
store.addCommentsFoot(mapping.Content[len(mapping.Content)-2], comments)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user