mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Remove unnecessary type conversion
This commit is contained in:
2
sops.go
2
sops.go
@@ -343,7 +343,7 @@ func (m *Metadata) UpdateMasterKeysWithKeyServices(dataKey []byte, svcs []keyser
|
||||
m.ShamirQuorum = len(m.KeyGroups)
|
||||
}
|
||||
log.Printf("Multiple KeyGroups found, proceeding with Shamir with quorum %d", m.ShamirQuorum)
|
||||
parts, err = shamir.Split(dataKey, len(m.KeyGroups), int(m.ShamirQuorum))
|
||||
parts, err = shamir.Split(dataKey, len(m.KeyGroups), m.ShamirQuorum)
|
||||
if err != nil {
|
||||
errs = append(errs, fmt.Errorf("Could not split data key into parts for Shamir: %s", err))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user