We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d688019 commit 10f2774Copy full SHA for 10f2774
cmd/readmevalidation/coderresources.go
@@ -337,12 +337,12 @@ func validateResourceGfmAlerts(readmeBody string) []error {
337
}
338
339
trailingWhitespace := currentMatch[3]
340
- if len(trailingWhitespace) != 0 {
+ if trailingWhitespace != "" {
341
errs = append(errs, xerrors.Errorf("GFM alerts must not have any trailing whitespace after the closing bracket"))
342
343
344
extraContent := currentMatch[4]
345
- if len(extraContent) != 0 {
+ if extraContent != "" {
346
errs = append(errs, xerrors.Errorf("GFM alerts must not have any extra content on the same line"))
347
348
0 commit comments