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 0165fe4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 3 additions & 5 deletions cliv2/cmd/cliv2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ package main

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

"slices"


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

import (
Expand Down Expand Up @@ -201,7 +199,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 0165fe4

Please sign in to comment.