mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 14:54:19 +01:00
runtime: fix static check errors
It turns out we have managed to break the static checker in many difference places with the absence of static checker in github action. Let's fix them while enabling static checker in github actions... Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
@@ -700,7 +700,7 @@ func (c *Container) createBlockDevices(ctx context.Context) error {
|
||||
|
||||
// newContainer creates a Container structure from a sandbox and a container configuration.
|
||||
func newContainer(ctx context.Context, sandbox *Sandbox, contConfig *ContainerConfig) (*Container, error) {
|
||||
span, ctx := sandbox.trace(ctx, "newContainer")
|
||||
span, _ := sandbox.trace(ctx, "newContainer")
|
||||
defer span.End()
|
||||
|
||||
if !contConfig.valid() {
|
||||
|
||||
Reference in New Issue
Block a user