1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-09 00:00:02 +01:00

restic backup - gofmt got me

here is the better version by gofmt
This commit is contained in:
Winfried Plappert 2025-03-04 16:55:05 +00:00
parent 55f3c2e08c
commit e36b07f78b

View file

@ -771,14 +771,14 @@ func checkPartialSnapshot(sn *restic.Snapshot, checkType string, subCommand stri
}
switch checkType {
case "error", "fatal":
return errors.Fatalf("selected snapshot %s cannot be used with the command %q because it is a partial snapshot",
sn.ID().Str(), subCommand)
case "warn":
Warnf("be aware that command %s may create unexpected results because %s is a partial snapshot\n",
subCommand, sn.ID().Str())
return nil
default:
return errors.New("type %s is invalid")
case "error", "fatal":
return errors.Fatalf("selected snapshot %s cannot be used with the command %q because it is a partial snapshot",
sn.ID().Str(), subCommand)
case "warn":
Warnf("be aware that command %s may create unexpected results because %s is a partial snapshot\n",
subCommand, sn.ID().Str())
return nil
default:
return errors.New("type %s is invalid")
}
}