Skip to content

Commit

Permalink
MAke rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed May 14, 2018
1 parent c72b4f1 commit feac605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/modules/BootArch.rb
Expand Up @@ -38,7 +38,7 @@ def main
S390_WHITELIST = [
/net\.ifnames=\S*/,
/fips=\S*/
]
].freeze

# Get parameters for the default kernel
# @param [String] resume string device to resume from (or empty not to set it)
Expand Down Expand Up @@ -66,9 +66,7 @@ def DefaultKernelParams(resume)
parameters = "#{features} #{termparm}"
# pick selected params from installation command line
S390_WHITELIST.each do |pattern|
if kernel_cmdline =~ pattern
parameters << " #{Regexp.last_match(0)}"
end
parameters << " #{Regexp.last_match(0)}" if kernel_cmdline =~ pattern
end

parameters << " resume=#{resume}" unless resume.empty?
Expand Down
1 change: 0 additions & 1 deletion test/test_helper.rb
Expand Up @@ -12,7 +12,6 @@
# force utf-8 encoding for external
Encoding.default_external = Encoding::UTF_8


RSpec.configure do |config|
config.mock_with :rspec do |mocks|
# If you misremember a method name both in code and in tests,
Expand Down

0 comments on commit feac605

Please sign in to comment.