Skip to content
Snippets Groups Projects
Commit ab644a0f authored by potsables's avatar potsables Committed by Steven Allen
Browse files

repo/fsrepo: add string type assert

parent bdb9e4e2
No related tags found
No related merge requests found
...@@ -389,7 +389,7 @@ func (r *FSRepo) openKeystore() error { ...@@ -389,7 +389,7 @@ func (r *FSRepo) openKeystore() error {
spec = map[string]interface{}{"type": "files", "path": "keystore"} spec = map[string]interface{}{"type": "files", "path": "keystore"}
} }
ksType, ok := spec["type"] ksType, ok := spec["type"].(string)
if !ok { if !ok {
return fmt.Errorf("keystore config lacks a type") return fmt.Errorf("keystore config lacks a type")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment