Skip to content

Commit

Permalink
lint: don't redefine 'close' (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav authored Dec 9, 2024
1 parent 637dd42 commit cc61323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/yuin/goldmark/text"
)

func hijackStdout(t testing.TB) (path string, close func() error) {
func hijackStdout(t testing.TB) (path string, restore func() error) {
stdout := os.Stdout
t.Cleanup(func() {
os.Stdout = stdout
Expand Down

0 comments on commit cc61323

Please sign in to comment.