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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user