Commit 852674b1 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

chore(pin) rm commented code

parent 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 is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment