Remove not needed context pointers in container interface
Container interface is being extended right now, because we build new things on top of it, such as bootstrap containers. Current version of it, was delivered as MVP and is used only in ISOGEN. During MVP stage we didn't bother too much about the pointers and readability. However now when we built something new on top of it, we want to make sure that it we dont make matters worse, and building on solid foundation. The pointers are not needed in any way, and they are dereferenced on top of that, context.Context is an interface, and there is very limited theoretical use of pointers to interfaces. Change-Id: Iee1eeb89f058aa8e994cba685b49085707362ee1
This commit is contained in:
@@ -99,7 +99,7 @@ func (c *Executor) Run(evtCh chan events.Event, opts ifc.RunOptions) {
|
||||
if c.builder == nil {
|
||||
ctx := context.Background()
|
||||
builder, err := container.NewContainer(
|
||||
&ctx,
|
||||
ctx,
|
||||
c.imgConf.Container.ContainerRuntime,
|
||||
c.imgConf.Container.Image)
|
||||
c.builder = builder
|
||||
|
||||
Reference in New Issue
Block a user