(m uhaha.Machine, args []string)
| 398 | if len(v) == 0 { |
| 399 | return nil, nil |
| 400 | } |
| 401 | |
| 402 | return v, nil |
| 403 | } |
| 404 | |
| 405 | func cmdLPOP(m uhaha.Machine, args []string) (interface{}, error) { |
| 406 | if len(args) != 2 { |
| 407 | return nil, uhaha.ErrWrongNumArgs |
| 408 | } |
| 409 | |
| 410 | v, err := ldb.LPop([]byte(args[1])) |
| 411 | if err != nil { |
| 412 | return nil, err |
| 413 | } |
nothing calls this directly
no outgoing calls
no test coverage detected