Skip to content

Commit

Permalink
[Truffle] Prefer || to ternary condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 24, 2014
1 parent 0845d2b commit b2fafdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/update_truffle_copyright.rb
Expand Up @@ -70,7 +70,7 @@

year1, year2 = $~[:year1], $~[:year2]
year1 = Integer(year1)
year2 = year2 ? Integer(year2) : year1
year2 = Integer(year2 || year1)

if now_year > year2
contents = File.read(file)
Expand Down

0 comments on commit b2fafdc

Please sign in to comment.