X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=pkg%2Fstore%2Fstore.go;h=21603fe781fbf2ea98dba4a6eece97ffae44747e;hb=4dc8c240d05ab18bb6b4ab81a63796202b093d74;hp=e476a7e1b10a3e42e50cff70a8671e10cd6c231d;hpb=2646267e4d7f7981e5bf63c18f9e0400e3de2f49;p=epoint diff --git a/pkg/store/store.go b/pkg/store/store.go index e476a7e..21603fe 100644 --- a/pkg/store/store.go +++ b/pkg/store/store.go @@ -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 }