Skip to content

Commit

Permalink
fix errors reported by go fmt and staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 5, 2024
1 parent 2903dbc commit abb47d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions scripts/generate-popular-actions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ func (r *registry) spec(tag string) string {
var defaultPopularActionsJSON []byte

type gen struct {
stdout io.Writer
stderr io.Writer
log *log.Logger
stdout io.Writer
stderr io.Writer
log *log.Logger
rawRegistry []byte
}

Expand Down
10 changes: 1 addition & 9 deletions scripts/generate-popular-actions/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ import (
"github.com/google/go-cmp/cmp"
)

var testDummyPopularActions = []*registry{
{
Slug: "rhysd/action-setup-vim",
Tags: []string{"v1"},
Next: "v2",
},
}

// Normal cases

func TestDefaultPopularActions(t *testing.T) {
Expand Down Expand Up @@ -283,7 +275,7 @@ func TestDetectNewRelease(t *testing.T) {
}

func TestDetectNoRelease(t *testing.T) {
files := []string {
files := []string{
"no_new_version.json",
"empty_next_version.json",
}
Expand Down

0 comments on commit abb47d8

Please sign in to comment.