Skip to content

Commit

Permalink
Make RuboCop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Mar 19, 2019
1 parent 108ef40 commit ebadfda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/y2network/config_reader.rb
Expand Up @@ -25,7 +25,7 @@ module ConfigReader
def self.for(source = :wicked)
require "y2network/config_reader/#{source}"
name = source.to_s.split("_").map(&:capitalize).join
klass = self.const_get(name)
klass = const_get(name)
klass.new
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/y2network/config_reader/wicked_test.rb
Expand Up @@ -25,7 +25,7 @@
let(:lan_items) do
instance_double(
Yast::LanItemsClass,
Read: nil,
Read: nil,
current_device_names: ["lo", "eth0", "wlan0"]
)
end
Expand Down

0 comments on commit ebadfda

Please sign in to comment.