Skip to content

Commit

Permalink
Better if/else/end alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
amdprophet committed Dec 9, 2014
1 parent 9be0514 commit 5bd7693
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ Style/FileName:
# Don't require UTF8
Style/Encoding:
Enabled: false

# Don't align else/end with if statements that come after =
Lint/EndAlignment:
AlignWith: variable
16 changes: 8 additions & 8 deletions recipes/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
package_options = node['uchiwa']['package_options'] || '--force-confdef --force-confnew'

arch = if node['kernel']['machine'] == 'x86_64'
'amd64'
else
'i386'
end
'amd64'
else
'i386'
end

pkg = "uchiwa_#{node['uchiwa']['version']}_#{arch}.deb"
url = "#{node['uchiwa']['http_url']}/#{pkg}"
Expand All @@ -43,10 +43,10 @@
package_options = node['uchiwa']['package_options'] || '--nogpgcheck'

arch = if node['kernel']['machine'] == 'i686'
'i386'
else
node['kernel']['machine']
end
'i386'
else
node['kernel']['machine']
end

pkg = "uchiwa-#{node['uchiwa']['version']}.#{arch}.rpm"
url = "#{node['uchiwa']['http_url']}/#{pkg}"
Expand Down

0 comments on commit 5bd7693

Please sign in to comment.