store: minor fixes
authornsz <nsz@port70.net>
Fri, 16 Dec 2011 06:39:48 +0000 (07:39 +0100)
committernsz <nsz@port70.net>
Fri, 16 Dec 2011 06:39:48 +0000 (07:39 +0100)
pkg/store/store.go

index e476a7e..21603fe 100644 (file)
@@ -18,19 +18,19 @@ type Conn struct {
 }
 
 type NotFoundError struct {
-       path string
+       Path string
 }
 
 type AlreadyExistsError struct {
-       path string
+       Path string
 }
 
 func (e NotFoundError) Error() string {
-       return "not found: " + e.path
+       return "not found: " + e.Path
 }
 
 func (e AlreadyExistsError) Error() string {
-       return "already exists: " + e.path
+       return "already exists: " + e.Path
 }
 
 // Open db connection
@@ -91,9 +91,6 @@ func (c *Conn) Insert(name, k string, v []byte) (err error) {
        }
        defer f.Close()
        _, err = f.Write(v)
-       if err != nil {
-               return
-       }
        return
 }