diff options
author | Evan Read <eread@gitlab.com> | 2019-03-28 10:29:01 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-03-28 10:29:01 +0300 |
commit | fede7901074cbdaf84dc040068299475739c3893 (patch) | |
tree | 86dc43abc01e4695f5b7a2ec8c43418ac9fae4be /lib/checks | |
parent | fad33b4097174d92c518e82c4fb2e904b24f68ba (diff) |
If there are no issues, don't flag it
Diffstat (limited to 'lib/checks')
-rw-r--r-- | lib/checks/anchors.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/checks/anchors.rb b/lib/checks/anchors.rb index a1e2b82e..f200315f 100644 --- a/lib/checks/anchors.rb +++ b/lib/checks/anchors.rb @@ -23,6 +23,5 @@ Nanoc::Check.define(:internal_anchors) do end end end - - add_issue "#{issues.count} offenses found!" + add_issue "#{issues.count} offenses found!" if issues.count > 0 end |