mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-09 10:18:04 +08:00
repo/fsrepo: add string type assert
This commit is contained in:
parent
bdb9e4e21a
commit
ab644a0f59
@ -389,7 +389,7 @@ func (r *FSRepo) openKeystore() error {
|
||||
spec = map[string]interface{}{"type": "files", "path": "keystore"}
|
||||
}
|
||||
|
||||
ksType, ok := spec["type"]
|
||||
ksType, ok := spec["type"].(string)
|
||||
if !ok {
|
||||
return fmt.Errorf("keystore config lacks a type")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user