From aee7253db68aa257272eaddfc251b80a99341e57 Mon Sep 17 00:00:00 2001 From: Adrian Utrilla Date: Mon, 11 Sep 2017 10:18:27 -0700 Subject: [PATCH] Remove unnecessary type conversion --- sops.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sops.go b/sops.go index d8fea0e72..1435db59a 100644 --- a/sops.go +++ b/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