Skip to content
Snippets Groups Projects
Commit 61832c37 authored by Valery Kalashnikov's avatar Valery Kalashnikov Committed by Lyuben Penkovski
Browse files

Fix linting errors

parent 4b8f7c8b
No related branches found
No related tags found
2 merge requests!11Rego functions for cache write and read (set and get),!7Add Rego lang extension to work with the cache
......@@ -29,9 +29,9 @@ func (ce *CacheExt) GetCacheFunc() (*rego.Function, rego.Builtin3) {
if err := ast.As(a.Value, &key); err != nil {
return nil, err
} else if ast.As(b.Value, &namespace); err != nil {
} else if err = ast.As(b.Value, &namespace); err != nil {
return nil, err
} else if ast.As(c.Value, &scope); err != nil {
} else if err = ast.As(c.Value, &scope); err != nil {
return nil, err
}
......
......@@ -19,7 +19,6 @@ func TestCacheExt_GetCacheFunc(t *testing.T) {
fmt.Fprint(w, expected)
}))
defer srv.Close()
fmt.Println(srv.URL)
cache := regoext.NewCacheExt(srv.URL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment