Skip to content

Commit

Permalink
fix: flag parse with correct naming
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Sep 11, 2024
1 parent 78e8938 commit a765fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finality-provider/cmd/fpd/daemon/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func runInitCmd(ctx client.Context, cmd *cobra.Command, args []string) error {
homePath = util.CleanAndExpandPath(homePath)
force, err := cmd.Flags().GetBool(forceFlag)
if err != nil {
return fmt.Errorf("failed to read flag %s: %w", fpEotsPkFlag, err)
return fmt.Errorf("failed to read flag %s: %w", forceFlag, err)
}

if util.FileExists(homePath) && !force {
Expand Down

0 comments on commit a765fe7

Please sign in to comment.