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:
parent
55f3c2e08c
commit
e36b07f78b
1 changed files with 9 additions and 9 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue