Permalink
Browse files

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.
  • Loading branch information...
1 parent c889ac4 commit 009e62a2b4959320f97781ad15b5ca0277fe1169 @ddrscott committed Sep 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'

0 comments on commit 009e62a

Please sign in to comment.