Skip to content

Commit 1ad94ff

Browse files
committed
rubocop: autofix
Signed-off-by: Tim Meusel <tim@bastelfreak.de>
1 parent 485a9fc commit 1ad94ff

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/facter/framework/cli/cli.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ def add_commands_to_help
201201
Cli.commands.values
202202
.select { |command_class| command_class.instance_of?(Thor::Command) }
203203
.each do |command|
204-
help_command_options << build_option(
205-
command['name'],
206-
[command['usage'].split(',')[1]],
207-
command['description']
208-
)
204+
help_command_options << build_option(
205+
command['name'],
206+
[command['usage'].split(',')[1]],
207+
command['description']
208+
)
209209
end
210210

211211
help_command_options

lib/facter/resolvers/aix/ffi/ffi_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def self.read_load_averages
3333

3434
return if Libc.getkerninfo(KINFO_READ | KINFO_GET_AVENRUN, averages, averages_size, 0).negative?
3535

36-
averages.read_array_of_long_long(3).map { |x| (x / 65_536.0) }
36+
averages.read_array_of_long_long(3).map { |x| x / 65_536.0 }
3737
end
3838

3939
def self.read_interfaces

lib/facter/resolvers/aix/networking.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def post_resolve(fact_name, _options)
1616
def read_netstat(fact_name)
1717
@fact_list[:interfaces] = {}
1818
output = Facter::Core::Execution.execute('netstat -rn', logger: log)
19-
output = output.each_line.select { |line| (line =~ /\s\s[0-9]+.[0-9]+.[0-9]+.[0-9]+|\s\s.*:[0-9a-f]+/) }
19+
output = output.each_line.select { |line| line =~ /\s\s[0-9]+.[0-9]+.[0-9]+.[0-9]+|\s\s.*:[0-9a-f]+/ }
2020
@fact_list[:interfaces] = load_interfaces
2121

2222
populate_with_mtu_and_mac!(@fact_list[:interfaces])

lib/facter/resolvers/linux/processors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def physical_devices_count
7070
.select { |dir| dir =~ /cpu[0-9]+$/ }
7171
.select { |dir| File.exist?("/sys/devices/system/cpu/#{dir}/topology/physical_package_id") }
7272
.map do |dir|
73-
Facter::Util::FileHelper.safe_read("/sys/devices/system/cpu/#{dir}/topology/physical_package_id").strip
73+
Facter::Util::FileHelper.safe_read("/sys/devices/system/cpu/#{dir}/topology/physical_package_id").strip
7474
end
7575
.uniq.count
7676
end

0 commit comments

Comments
 (0)