Skip to content

Commit db7c95e

Browse files
author
Christos Kotsis
committed
fix: lint errors
1 parent 13e87e1 commit db7c95e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

db/store_lib.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ func NewStorageFactory(p ...interface{}) (*Storage, error) {
5858
return state, nil
5959
}
6060

61+
// Close method will do a write if InMem is false
62+
// and then clear cache and buffers
6163
func (s *Storage) Close() error {
6264
if !s.mem {
6365
err := s.Write()

db/wrappers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (s *Storage) Get(k string) ([]string, error) {
116116
return obj, nil
117117
}
118118

119-
// Get is a SQL wrapper that finds all the paths for a given
119+
// FindKeys is a SQL wrapper that finds all the paths for a given
120120
// e.g. ["key-1.test", "key-2.key-3.test"] will be returned
121121
func (s *Storage) FindKeys(k string) ([]string, error) {
122122
obj, err := s.SQL.get(k, s.GetData())

0 commit comments

Comments
 (0)