integration: fix perfsprint linting

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn committed 2026-09-17 10:53:12 +02:00
1 parent 4e125be9ca
commit 838f3f2b40
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -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]
+1 -1
View File
@@ -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 {