1
0
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:
Adrian Utrilla
2017-09-11 10:18:27 -07:00
parent 8541e26f7a
commit aee7253db6

View File

@@ -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