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
@@ -71,7 +71,7 @@ func consistencyCmd(cfg *config.Config) *cobra.Command {
// checkPosixfsConsistency checks the consistency of the posixfs storage.
func checkPosixfsConsistency(cmd *cobra.Command, cfg *config.Config) error {
rootPath := cmd.Flag("root").Value.String()
rootPath, _ := cmd.Flags().GetString("root")
indexesPath := filepath.Join(rootPath, "indexes")
_, err := os.Stat(indexesPath)