Skip to content

Commit 005dcd3

Browse files
committed
revert swaggerparser change
1 parent 13ede7f commit 005dcd3

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...]
92+
// "// @<annotationName> [args...]" -> []string{"//", "@<annotationName>", "args..."}
9393
splitN := strings.SplitN(strings.TrimSpace(line.Text), " ", 3)
94-
if len(splitN) < 2 {
94+
if len(splitN) < 3 {
9595
continue // comment prefix without any content
9696
}
9797

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy