提交 ab644a0f 作者: potsables 提交者: Steven Allen

repo/fsrepo: add string type assert

上级 bdb9e4e2
......@@ -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")
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论