提交 852674b1 作者: Brian Tiger Chow 提交者: Juan Batiz-Benet

chore(pin) rm commented code

上级 63feb68c
......@@ -24,19 +24,6 @@ var pinCmd = &cmds.Command{
opt, _ := req.Option("recursive")
recursive, _ := opt.(bool) // false if cast fails.
/*depth := 1 // default (non recursive)
// if recursive, set depth flag
if recursive {
opt, found := req.Option("depth")
if d, ok := opt.(int); found && ok {
depth = d
} else {
res.SetError(errors.New("cast error"), cmds.ErrNormal)
return
}
}*/
paths, err := internal.ToStrings(req.Arguments())
if err != nil {
res.SetError(err, cmds.ErrNormal)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论