Skip to content

Commit

Permalink
test extended linting
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Mar 14, 2024
1 parent 02ddfc5 commit dee2075
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions apps/cnquery/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"os"
"sort"

"github.com/cockroachdb/errors"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down Expand Up @@ -182,9 +181,6 @@ func (c *scanConfig) loadBundles() error {
// them locally requires us to do it in here.
RemoveFailing: true,
})
if err != nil {
return errors.Wrap(err, "failed to compile bundle")
}

c.Bundle = bundle
return nil
Expand Down
3 changes: 0 additions & 3 deletions cnquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ func GetLatestReleaseName(releaseUrl string, client *http.Client) (string, error
}

body, err := io.ReadAll(resp.Body)
if err != nil {
return "", fmt.Errorf("error reading response body: %v", err)
}

var release Release
if err := json.Unmarshal(body, &release); err != nil {
Expand Down

0 comments on commit dee2075

Please sign in to comment.