mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
integration: fix perfsprint linting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -20,6 +20,7 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -99,7 +100,7 @@ func failpointProfileFromOCIAnnotation() (invokerInterceptor, error) {
|
||||
|
||||
profileName, ok := spec.Annotations[failpointProfileKey]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("failpoint profile is required")
|
||||
return nil, errors.New("failpoint profile is required")
|
||||
}
|
||||
|
||||
fp, ok := failpointProfiles[profileName]
|
||||
|
||||
@@ -477,7 +477,7 @@ func cleanupOrphanedIDDirs(ctx context.Context, cntrs []containerd.Container, ba
|
||||
|
||||
func (c *criService) createContainerIO(containerID, sandboxID string, config *runtime.ContainerConfig) (*cio.ContainerIO, error) {
|
||||
if config == nil {
|
||||
return nil, errors.New("ContainerConfig should not be nil when create container io")
|
||||
return nil, errors.New("ContainerConfig must not be nil when creating container IO")
|
||||
}
|
||||
sb, err := c.sandboxStore.Get(sandboxID)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user