diff options
-rwxr-xr-x | git-hooks/gerrit-bot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/gerrit-bot b/git-hooks/gerrit-bot index 29ad4ed..4bd24b7 100755 --- a/git-hooks/gerrit-bot +++ b/git-hooks/gerrit-bot @@ -221,7 +221,7 @@ sub process_commit($$$$$) merge_hashes($verdict, $vd); } } - if ($$verdict{labels}{'Sanity-Review'} == 1 && int($$verdict{comments}) == 0) { + if ($$verdict{labels}{'Sanity-Review'} == 1 && int(@{$verdict{comments} || []}) == 0) { # Don't spam everyone about a boring +1 sanity review with no comments. $$verdict{notify} = "NONE"; } |