From be8ce2b23a11534c6ddb3a9334026cc4a95760b5 Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Tue, 12 Mar 2024 20:03:31 -0600 Subject: [PATCH] fix inconsistent naming Signed-off-by: Meredith Lancaster --- pkg/cmd/attestation/tufrootverify/tuf-root-verify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/attestation/tufrootverify/tuf-root-verify.go b/pkg/cmd/attestation/tufrootverify/tuf-root-verify.go index ed5400260..631f46176 100644 --- a/pkg/cmd/attestation/tufrootverify/tuf-root-verify.go +++ b/pkg/cmd/attestation/tufrootverify/tuf-root-verify.go @@ -44,7 +44,7 @@ func NewTUFRootVerifyCmd(f *cmdutil.Factory) *cobra.Command { return err } - if err := verifyTUFRoot(mirror, root); err != nil { + if err := tufRootVerify(mirror, root); err != nil { return fmt.Errorf("Failed to verify the TUF repository: %w", err) } fmt.Sprintln(logger.IO.Out, logger.ColorScheme.Green("Successfully verified the TUF repository")) @@ -60,7 +60,7 @@ func NewTUFRootVerifyCmd(f *cmdutil.Factory) *cobra.Command { return &cmd } -func verifyTUFRoot(mirror, root string) error { +func tufRootVerify(mirror, root string) error { rb, err := os.ReadFile(root) if err != nil { return fmt.Errorf("failed to read root file %s: %w", root, err)