We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 377b6b4 commit ffd644aCopy full SHA for ffd644a
stores/yaml/store.go
@@ -294,7 +294,7 @@ func (store *Store) LoadEncryptedFile(in []byte) (sops.Tree, error) {
294
// sops.Tree runtime object
295
func (store *Store) LoadPlainFile(in []byte) (sops.TreeBranches, error) {
296
var branches sops.TreeBranches
297
- {
+ if len(in) > 0 {
298
// This is needed to make the yaml-decoder check for uniqueness of keys
299
// Can probably be removed when https://github.com/go-yaml/yaml/issues/814 is merged.
300
if err := yaml.NewDecoder(bytes.NewReader(in)).Decode(make(map[string]interface{})); err != nil {
0 commit comments