mirror of
https://github.com/restic/restic.git
synced 2024-12-23 08:16:36 +00:00
check: remove dead code
This commit is contained in:
parent
0df022fa6d
commit
5e0f1c3cef
1 changed files with 0 additions and 8 deletions
|
@ -229,18 +229,10 @@ func (c *Checker) Packs(ctx context.Context, errChan chan<- error) {
|
||||||
// Error is an error that occurred while checking a repository.
|
// Error is an error that occurred while checking a repository.
|
||||||
type Error struct {
|
type Error struct {
|
||||||
TreeID restic.ID
|
TreeID restic.ID
|
||||||
BlobID restic.ID
|
|
||||||
Err error
|
Err error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e Error) Error() string {
|
func (e Error) Error() string {
|
||||||
if !e.BlobID.IsNull() && !e.TreeID.IsNull() {
|
|
||||||
msg := "tree " + e.TreeID.Str()
|
|
||||||
msg += ", blob " + e.BlobID.Str()
|
|
||||||
msg += ": " + e.Err.Error()
|
|
||||||
return msg
|
|
||||||
}
|
|
||||||
|
|
||||||
if !e.TreeID.IsNull() {
|
if !e.TreeID.IsNull() {
|
||||||
return "tree " + e.TreeID.String() + ": " + e.Err.Error()
|
return "tree " + e.TreeID.String() + ": " + e.Err.Error()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue