Skip to content

Commit e12cd50

Browse files
Update internal/qa/qa.go
Co-authored-by: Olivier Cano <[email protected]>
1 parent 75e3bfa commit e12cd50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/qa/qa.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func testAtLeastOneExampleIsPresentError(commands *core.Commands) []error {
339339
continue
340340
}
341341

342-
if len(command.Examples) < 1 {
342+
if len(command.Examples) == 0 {
343343
errors = append(errors, &MissingExampleError{Command: command})
344344
continue
345345
}

0 commit comments

Comments
 (0)