Skip to content

Commit 10f2774

Browse files
committed
fix: apply linting
1 parent d688019 commit 10f2774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/readmevalidation/coderresources.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,12 @@ func validateResourceGfmAlerts(readmeBody string) []error {
337337
}
338338

339339
trailingWhitespace := currentMatch[3]
340-
if len(trailingWhitespace) != 0 {
340+
if trailingWhitespace != "" {
341341
errs = append(errs, xerrors.Errorf("GFM alerts must not have any trailing whitespace after the closing bracket"))
342342
}
343343

344344
extraContent := currentMatch[4]
345-
if len(extraContent) != 0 {
345+
if extraContent != "" {
346346
errs = append(errs, xerrors.Errorf("GFM alerts must not have any extra content on the same line"))
347347
}
348348
}

0 commit comments

Comments
 (0)