Skip to content

Commit

Permalink
fix go vet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Dec 2, 2024
1 parent 0fdb781 commit 7548a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ func TestPodmanDriver_Init(t *testing.T) {
versionChange, _ := version.NewVersion("4.2")
parsedApiVersion, err := version.NewVersion(apiVersion)
if err != nil {
t.Fatalf(fmt.Sprintf("Not a valid version: %s", apiVersion))
t.Fatalf("Not a valid version: %s", apiVersion)
}

if parsedApiVersion.LessThan(versionChange) {
Expand Down
2 changes: 1 addition & 1 deletion handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (h *TaskHandle) runContainerMonitor() {
} else {
h.exitResult.ExitCode = int(inspectData.State.ExitCode)
if len(inspectData.State.Error) > 0 {
h.exitResult.Err = fmt.Errorf(inspectData.State.Error)
h.exitResult.Err = errors.New(inspectData.State.Error)
h.logger.Error("Container error", "container", h.containerID, "error", h.exitResult.Err)
}
h.completedAt = inspectData.State.FinishedAt
Expand Down

0 comments on commit 7548a83

Please sign in to comment.