Skip to content

Commit

Permalink
Tidy code
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyskoedijk authored Oct 23, 2024
1 parent 75fb427 commit 79439a5
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions internal/infra/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
"os/signal"
"regexp"
"strings"
"syscall"
"time"

"github.com/dependabot/cli/internal/model"
"github.com/dependabot/cli/internal/server"
"github.com/docker/docker/api/types"
Expand All @@ -27,6 +17,15 @@ import (
"github.com/moby/moby/api/types/registry"
"github.com/moby/moby/client"
"gopkg.in/yaml.v3"
"io"
"log"
"net/http"
"os"
"os/signal"
"regexp"
"strings"
"syscall"
"time"
)

type RunParams struct {
Expand Down Expand Up @@ -150,12 +149,7 @@ func Run(params RunParams) error {
return diff(params, outFile, output)
}

// if the containers failed, propagate the error
if runContainersErr != nil {
return runContainersErr
}

return nil
return runContainersErr
}

func generateOutput(params RunParams, api *server.API, outFile *os.File) ([]byte, error) {
Expand Down

0 comments on commit 79439a5

Please sign in to comment.