diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-11-17 14:20:27 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-11-17 14:20:27 +0300 |
commit | dc11f0a1278fca878968ebdd0e3bdedb6d71c694 (patch) | |
tree | ca40bd78ff810cc46f9e99b4a01745cbe9624d3b /lib | |
parent | af8f0f5ba167b1de9e90878b923b53bc0acf03f8 (diff) | |
parent | 26829df4a056d42168c9c180568caa598b39729f (diff) |
Merge branch 'eread/fix-two-rubocop-errors' into 'master'
Fix two Rubocop errors
See merge request gitlab-org/gitlab-docs!1323
Diffstat (limited to 'lib')
-rw-r--r-- | lib/checks/anchors.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/docs/nanoc.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/checks/anchors.rb b/lib/checks/anchors.rb index 21904e35..91238bfc 100644 --- a/lib/checks/anchors.rb +++ b/lib/checks/anchors.rb @@ -23,5 +23,5 @@ Nanoc::Check.define(:internal_anchors) do end end end - add_issue "#{issues.count} offenses found!" if issues.count > 0 + add_issue "#{issues.count} offenses found!" if issues.count.positive? end diff --git a/lib/gitlab/docs/nanoc.rb b/lib/gitlab/docs/nanoc.rb index 70b4c397..dbda9d40 100644 --- a/lib/gitlab/docs/nanoc.rb +++ b/lib/gitlab/docs/nanoc.rb @@ -2,7 +2,7 @@ module Gitlab module Docs module Nanoc def self.config - @config ||= YAML.load(File.read('nanoc.yaml')) + @config ||= YAML.safe_load(File.read('nanoc.yaml')) end def self.output_dir |