Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-03-28 10:29:01 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2019-03-28 10:29:01 +0300
commitfede7901074cbdaf84dc040068299475739c3893 (patch)
tree86dc43abc01e4695f5b7a2ec8c43418ac9fae4be /lib/checks
parentfad33b4097174d92c518e82c4fb2e904b24f68ba (diff)
If there are no issues, don't flag it
Diffstat (limited to 'lib/checks')
-rw-r--r--lib/checks/anchors.rb3
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