Skip to content

Commit

Permalink
Merge pull request #26 from MichaelFraser99/MichaelFraser99-patch-1
Browse files Browse the repository at this point in the history
Remove restriction on requiring at least one disclosure
  • Loading branch information
MichaelFraser99 authored Jul 18, 2024
2 parents 6727dff + 3552725 commit e8d5d34
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,6 @@ func ValidateDigests(body map[string]any) error {
func ValidateDisclosures(disclosures []string) ([]disclosure.Disclosure, error) {
var disclosureArray []disclosure.Disclosure

if len(disclosures) == 0 {
return nil, errors.New("token has no specified disclosures")
}

for _, d := range disclosures {
count := 0
if d != "" {
Expand Down

0 comments on commit e8d5d34

Please sign in to comment.