Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update lib/motion/project/config.rb #43

Merged
merged 1 commit into from

2 participants

@ddrscott

Need extra parens to fix order of operations. Alternative could have been changing the "and" to "&&", but I don't know the coding guidelines.

@ddrscott ddrscott Update lib/motion/project/config.rb
Need extra parens to fix order of operations. Alternative could have been changing the "and" to "&&", but I don't know the coding guidelines.
009e62a
@ddrscott

Need extra parens to fix order of operations

@lrz
Owner
lrz commented

Thanks for the patch!

@lrz lrz merged commit c17fb27 into HipByte:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 30, 2012
  1. @ddrscott

    Update lib/motion/project/config.rb

    ddrscott authored
    Need extra parens to fix order of operations. Alternative could have been changing the "and" to "&&", but I don't know the coding guidelines.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/motion/project/config.rb
View
2  lib/motion/project/config.rb
@@ -496,7 +496,7 @@ def device_family_string(family, target, retina)
end
case retina
when 'true'
- device + (family == 1 and target >= '6.0' ? ' (Retina 4-inch)' : ' (Retina)')
+ device + ((family == 1 and target >= '6.0') ? ' (Retina 4-inch)' : ' (Retina)')
when '3.5'
device + ' (Retina 3.5-inch)'
when '4'
Something went wrong with that request. Please try again.