fix inconsistent naming

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster 2024-03-12 20:03:31 -06:00
parent 7565cc4437
commit be8ce2b23a

View file

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