Skip to content

Commit eca482a

Browse files
committed
rubocop: autofix
1 parent 82b043a commit eca482a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/spec_helper.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1+
# frozen_string_literal: true
2+
13
# Managed by modulesync - DO NOT EDIT
24
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
35

46
# puppetlabs_spec_helper will set up coverage if the env variable is set.
57
# We want to do this if lib exists and it hasn't been explicitly set.
6-
ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../../lib', __FILE__))
8+
ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../lib', __dir__))
79

810
require 'voxpupuli/test/spec_helper'
911

1012
if File.exist?(File.join(__dir__, 'default_module_facts.yml'))
1113
facts = YAML.safe_load(File.read(File.join(__dir__, 'default_module_facts.yml')))
12-
if facts
13-
facts.each do |name, value|
14-
add_custom_fact name.to_sym, value
15-
end
14+
facts&.each do |name, value|
15+
add_custom_fact name.to_sym, value
1616
end
1717
end

0 commit comments

Comments
 (0)