2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-29 07:00:49 +00:00

Remove double check

This commit is contained in:
Alexander Neumann 2014-11-15 15:25:30 +01:00
parent 9b75f2cab0
commit 24b4d58bdf

View File

@ -69,17 +69,12 @@ func OpenLocal(dir string) (*Local, error) {
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
if version != BackendVersion {
return nil, fmt.Errorf("wrong version %d", version)
}
return &Local{p: dir, ver: uint(version)}, nil
}
// CreateLocal creates all the necessary files and directories for a new local