Skip to content

Commit

Permalink
chore: apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thisislawatts committed May 6, 2024
1 parent cb6609f commit b530ae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 3 additions & 8 deletions cliv2/cmd/cliv2/main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
package main

// !!! This import needs to be the first import, please do not change this !!!
import (

"slices"


_ "github.com/snyk/go-application-framework/pkg/networking/fips_enable"
)
import _ "github.com/snyk/go-application-framework/pkg/networking/fips_enable"

import (
"context"
Expand All @@ -17,6 +11,7 @@ import (
"io"
"os"
"os/exec"
"slices"
"strings"
"time"

Expand Down Expand Up @@ -201,7 +196,7 @@ func getErrorFromWorkFlowData(data []workflow.Data, minSeverity string) error {
// Severity order
defaultSummary := json_schemas.NewTestSummary("sast")
severityOrder := defaultSummary.SeverityOrderAsc
if (len(summary.SeverityOrderAsc) > 0) {
if len(summary.SeverityOrderAsc) > 0 {
severityOrder = summary.SeverityOrderAsc
}

Expand Down
1 change: 0 additions & 1 deletion cliv2/cmd/cliv2/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ func Test_displayError(t *testing.T) {
actualCode := cliv2.DeriveExitCode(err)
assert.Equal(t, constants.SNYK_EXIT_CODE_VULNERABILITIES_FOUND, actualCode)
})

}

type wrErr struct{ wraps error }
Expand Down

0 comments on commit b530ae5

Please sign in to comment.