From 24b4d58bdfed636a56d7e6fc78da97ea9db0b813 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 15 Nov 2014 15:25:30 +0100 Subject: [PATCH] Remove double check --- backend/local.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/local.go b/backend/local.go index a87bb55f1..f88420e7e 100644 --- a/backend/local.go +++ b/backend/local.go @@ -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