Skip to content

Commit 7dae6be

Browse files
committed
Modernize reflect
1 parent f736935 commit 7dae6be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stability/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ var Changes = &analysis.Analyzer{
122122
Name: "changed",
123123
Doc: "Use VCS to know which lines have changed",
124124
Run: run_commitdiffs,
125-
ResultType: reflect.TypeOf([]Hunk{}),
125+
ResultType: reflect.TypeFor[[]Hunk](),
126126
}
127127

128128
func run_commitdiffs(pass *analysis.Pass) (any, error) {

0 commit comments

Comments
 (0)