projects
/
epoint
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a26d216
)
store: minor fixes
author
nsz
<nsz@port70.net>
Fri, 16 Dec 2011 06:39:48 +0000
(07:39 +0100)
committer
nsz
<nsz@port70.net>
Fri, 16 Dec 2011 06:39:48 +0000
(07:39 +0100)
pkg/store/store.go
patch
|
blob
|
history
diff --git
a/pkg/store/store.go
b/pkg/store/store.go
index
e476a7e
..
21603fe
100644
(file)
--- a/
pkg/store/store.go
+++ b/
pkg/store/store.go
@@
-18,19
+18,19
@@
type Conn struct {
}
type NotFoundError struct {
}
type NotFoundError struct {
-
p
ath string
+
P
ath string
}
type AlreadyExistsError struct {
}
type AlreadyExistsError struct {
-
p
ath string
+
P
ath string
}
func (e NotFoundError) Error() string {
}
func (e NotFoundError) Error() string {
- return "not found: " + e.
p
ath
+ return "not found: " + e.
P
ath
}
func (e AlreadyExistsError) Error() string {
}
func (e AlreadyExistsError) Error() string {
- return "already exists: " + e.
p
ath
+ return "already exists: " + e.
P
ath
}
// Open db connection
}
// 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)
}
defer f.Close()
_, err = f.Write(v)
- if err != nil {
- return
- }
return
}
return
}