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:
Diffstat (limited to 'lib/checks/anchors.rb')
-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