Skip to content

Commit ee4f8d3

Browse files
committed
revert swagger change
1 parent 79a19b6 commit ee4f8d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/coderdtest/swaggerparser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ func parseSwaggerComment(commentGroup *ast.CommentGroup) SwaggerComment {
8989
failures: []response{},
9090
}
9191
for _, line := range commentGroup.List {
92-
// "// @<annotationName> [args...]" -> []string{"//", "@<annotationName>", "args..."}
92+
// @<annotationName> [args...]
9393
splitN := strings.SplitN(strings.TrimSpace(line.Text), " ", 3)
94-
if len(splitN) < 3 {
94+
if len(splitN) < 2 {
9595
continue // comment prefix without any content
9696
}
9797

0 commit comments

Comments
 (0)