Skip to content

Commit

Permalink
Update internal/qa/qa.go
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Cano <kindermoumoute@users.noreply.github.com>
  • Loading branch information
remyleone and kindermoumoute authored Aug 11, 2020
1 parent 75e3bfa commit e12cd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/qa/qa.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func testAtLeastOneExampleIsPresentError(commands *core.Commands) []error {
continue
}

if len(command.Examples) < 1 {
if len(command.Examples) == 0 {
errors = append(errors, &MissingExampleError{Command: command})
continue
}
Expand Down

0 comments on commit e12cd50

Please sign in to comment.