client: allow build callback to return nil result
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>v0.8
parent
a2563079f7
commit
ebf0194d51
|
@ -171,6 +171,10 @@ func (c *grpcClient) Run(ctx context.Context, f client.BuildFunc) (retError erro
|
|||
return err
|
||||
}
|
||||
|
||||
if res == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := c.caps.Supports(pb.CapReturnMap); len(res.Refs) > 1 && err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue