Skip to content

Commit

Permalink
make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 23, 2017
1 parent 6d035bb commit b34d0af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ruby/yast/wfm.rb
Expand Up @@ -126,7 +126,7 @@ def self.scr_root
when "scr"
"/"
when /chroot=(.*):scr/
$1
Regexp.last_match(1)
else
raise "invalid SCR instance #{SCRGetName(SCRGetDefault())}"
end
Expand Down Expand Up @@ -277,6 +277,5 @@ def self.run_client(client)
return false
end
end

end
end
2 changes: 1 addition & 1 deletion tests/scr_spec.rb
Expand Up @@ -16,7 +16,7 @@ module Yast
end

it "raises exception if first is not String or Yast::Path" do
expect{Yast::SCR.public_send(method, 1, *args)}.to raise_error(ArgumentError)
expect { Yast::SCR.public_send(method, 1, *args) }.to raise_error(ArgumentError)
end

it "passed path arguments with method name prepended to underlayer wrapper" do
Expand Down

0 comments on commit b34d0af

Please sign in to comment.