diff options
author | Evan Read <eread@gitlab.com> | 2020-11-17 08:34:03 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2020-11-17 08:34:03 +0300 |
commit | 26829df4a056d42168c9c180568caa598b39729f (patch) | |
tree | 22c1c117e888b85607fe5a08b52545b4952f1c97 | |
parent | 5f11c2ad21e111fdd6701e17b520883710e4809e (diff) |
Fix two Rubocop errors
-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 |