Skip to content

Commit

Permalink
Fix Style/MultilineWhenThen offenses for new cop
Browse files Browse the repository at this point in the history
Fixed via:

    bundle exec rake rubocop:auto_correct
  • Loading branch information
agraul committed Aug 2, 2019
1 parent 5720f75 commit be6842d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/helpers/package_helper.rb
Expand Up @@ -3,17 +3,17 @@
module PackageHelper
def human_arch arch
case arch
when ("i586") then
when ("i586")
"32 Bit"
when ("i386") then
when ("i386")
"32 Bit"
when ("x86_64") then
when ("x86_64")
"64 Bit"
when ("amd64") then
when ("amd64")
"64 Bit"
when ("src") then
when ("src")
_("Source")
when ("nosrc") then
when ("nosrc")
_("Source")
else
arch
Expand Down
2 changes: 1 addition & 1 deletion lib/api_connect.rb
Expand Up @@ -24,7 +24,7 @@ def self.get(path, limit = 10)
response = http.request(request)
case response
when Net::HTTPSuccess then response;
when Net::HTTPRedirection then
when Net::HTTPRedirection
if limit
get(response['location'], limit - 1)
else
Expand Down

0 comments on commit be6842d

Please sign in to comment.