Commit bb907d84 authored by Steven Allen's avatar Steven Allen

add comment on why we check if bodyArgs is nil

parent c6e9db3a
......@@ -225,7 +225,7 @@ func (c *Command) CheckArguments(req *Request) error {
}
lastArg := c.Arguments[len(c.Arguments)-1]
if req.bodyArgs == nil &&
if req.bodyArgs == nil && // check this as we can end up calling CheckArguments multiple times. See #80.
lastArg.SupportsStdin &&
lastArg.Type == cmdkit.ArgString &&
req.Files != nil {
......
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