replace .Value.String() with .GetString(...)

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2025-12-15 16:40:27 +01:00
committed by Florian Schade
parent 8564fa4536
commit 032c218789
11 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func ConsistencyCommand(cfg *config.Config) *cobra.Command {
Use: "consistency",
Short: "check backup consistency",
RunE: func(cmd *cobra.Command, args []string) error {
basePath := cmd.Flag("basepath").Value.String()
basePath, _ := cmd.Flags().GetString("basepath")
if basePath == "" {
fmt.Println("basepath is required")
_ = cmd.Help()