Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
karanibm6 committed Jun 3, 2024
1 parent 8f17ad3 commit 477214a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/validate/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package validate
import (
"context"
"strconv"
"strings"

build "github.com/shipwright-io/build/pkg/apis/build/v1beta1"
"k8s.io/utils/pointer"
Expand Down Expand Up @@ -55,13 +54,3 @@ func (b *BuildSpecOutputValidator) isEmptySource() bool {
return b.Build.Spec.Source == nil ||
b.Build.Spec.Source.Git == nil && b.Build.Spec.Source.OCIArtifact == nil && b.Build.Spec.Source.Local == nil
}

func isValidSeverity(severity string) bool {
switch strings.ToLower(severity) {
case "low", "medium", "high":
return true
default:
return false
}

}

0 comments on commit 477214a

Please sign in to comment.