Skip to content

Commit

Permalink
refactor: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 14, 2023
1 parent 80bafe4 commit 3e861ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions pkg/controller/generate/github_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

"github.com/antonmedv/expr/vm"
"github.com/aquaproj/aqua/v2/pkg/expr"
"github.com/aquaproj/aqua/v2/pkg/github"
)

type Filter struct {
Expand All @@ -14,21 +13,6 @@ type Filter struct {
Constraint string
}

func filterRelease(release *github.RepositoryRelease, filters []*Filter) bool {
if release.GetPrerelease() {
return false
}

tagName := release.GetTagName()

for _, filter := range filters {
if filterTagByFilter(tagName, filter) {
return true
}
}
return false
}

func filterTagByFilter(tagName string, filter *Filter) bool {
sv := tagName
if filter.Prefix != "" {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package generate
package versiongetter

import (
"testing"
Expand Down

0 comments on commit 3e861ac

Please sign in to comment.