Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Mar 28, 2024
1 parent 6433718 commit d3064da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions mdtoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ import (
"log"
"os"

"sigs.k8s.io/release-utils/version"

"sigs.k8s.io/mdtoc/pkg/mdtoc"
"sigs.k8s.io/release-utils/version"
)

type utilityOptions struct {
Expand Down
4 changes: 0 additions & 4 deletions mdtoc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func testdata(subpath string) string {
func TestDryRun(t *testing.T) {
t.Parallel()
for _, test := range testcases {
test := test
t.Run(test.file, func(t *testing.T) {
t.Parallel()
opts := utilityOptions{
Expand All @@ -111,7 +110,6 @@ func TestDryRun(t *testing.T) {
func TestInplace(t *testing.T) {
t.Parallel()
for _, test := range testcases {
test := test
t.Run(test.file, func(t *testing.T) {
t.Parallel()
original, err := os.ReadFile(test.file)
Expand Down Expand Up @@ -157,8 +155,6 @@ func TestInplace(t *testing.T) {
func TestOutput(t *testing.T) {
t.Parallel()
for _, test := range testcases {
test := test

// Ignore the invalid cases, they're only for inplace tests.
if !test.validTOCTags {
continue
Expand Down

0 comments on commit d3064da

Please sign in to comment.