Skip to content

Commit a855dce

Browse files
committed
internal/source: add break keyword with comment to switch-case to indicate the case is necessary
1 parent 3e4dbf3 commit a855dce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/source/meta-tags.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ metaScan:
103103
switch len(fields) {
104104
case 3:
105105
// go-import meta tag support minium 3 fields (root-path vcs repo-url).
106+
break // good to proceed
106107
case 4:
107108
// go-import meta tag support minium 3 fields (root-path vcs repo-url), and additionally "subdirectory" field since Go 1.25.
108109
repoSubdir = fields[3]

0 commit comments

Comments
 (0)