提交 013de54d 作者: Overbool 提交者: Steven Allen

commands/filestore: fix gofmt

License: MIT
Signed-off-by: 's avatarOverbool <overbool.xu@gmail.com>
上级 dfde3915
...@@ -126,15 +126,15 @@ For ERROR entries the error will also be printed to stderr. ...@@ -126,15 +126,15 @@ For ERROR entries the error will also be printed to stderr.
return filestore.Verify(fs, c) return filestore.Verify(fs, c)
}) })
return res.Emit(out) return res.Emit(out)
} else {
fileOrder, _ := req.Options[fileOrderOptionName].(bool)
next, err := filestore.VerifyAll(fs, fileOrder)
if err != nil {
return err
}
out := listResToChan(req.Context, next)
return res.Emit(out)
} }
fileOrder, _ := req.Options[fileOrderOptionName].(bool)
next, err := filestore.VerifyAll(fs, fileOrder)
if err != nil {
return err
}
out := listResToChan(req.Context, next)
return res.Emit(out)
}, },
Encoders: cmds.EncoderMap{ Encoders: cmds.EncoderMap{
cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, out *filestore.ListRes) error { cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, out *filestore.ListRes) error {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论