store json on mountPath

This commit is contained in:
A.Unger
2020-01-31 10:34:01 +01:00
parent d02be70d52
commit b99eff460f
5 changed files with 79 additions and 32 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func (s *Store) Read(key string, opts ...mstore.ReadOption) ([]*mstore.Record, e
// Write implements the store interface
func (s *Store) Write(rec *mstore.Record) error {
if rec.Key == "" {
if len(rec.Key) < 1 {
return fmt.Errorf("%v", "key is empty")
}