forked from TrueCloudLab/restic
Remove double check
This commit is contained in:
parent
9b75f2cab0
commit
24b4d58bdf
1 changed files with 0 additions and 5 deletions
|
@ -69,17 +69,12 @@ func OpenLocal(dir string) (*Local, error) {
|
||||||
return nil, fmt.Errorf("unable to convert version to integer: %v\n", err)
|
return nil, fmt.Errorf("unable to convert version to integer: %v\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if version != BackendVersion {
|
|
||||||
return nil, fmt.Errorf("wrong version %d", version)
|
|
||||||
}
|
|
||||||
|
|
||||||
// check version
|
// check version
|
||||||
if version != BackendVersion {
|
if version != BackendVersion {
|
||||||
return nil, fmt.Errorf("wrong version %d", version)
|
return nil, fmt.Errorf("wrong version %d", version)
|
||||||
}
|
}
|
||||||
|
|
||||||
return &Local{p: dir, ver: uint(version)}, nil
|
return &Local{p: dir, ver: uint(version)}, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateLocal creates all the necessary files and directories for a new local
|
// CreateLocal creates all the necessary files and directories for a new local
|
||||||
|
|
Loading…
Reference in a new issue