1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Cast input bytes to string when creating a TreeItem

This commit is contained in:
Adrian Utrilla
2018-10-30 08:11:56 -04:00
parent 700455adff
commit f475b5cecd

View File

@@ -68,8 +68,8 @@ func (store *Store) LoadPlainFile(in []byte) (sops.TreeBranch, error) {
return nil, fmt.Errorf("invalid dotenv input line: %s", line)
}
branch = append(branch, sops.TreeItem{
Key: line[:pos],
Value: line[pos+1:],
Key: string(line[:pos]),
Value: string(line[pos+1:]),
})
}
return branch, nil