Skip to content

Commit

Permalink
Extra "toValue = " on line 98. This was inside a ternary function whi…
Browse files Browse the repository at this point in the history
…ch already was assigning its value to toValue. This likely was not causing a bug, but could cause compilers to less efficient, and some IDE's validations may not like it.
  • Loading branch information
rwblackburn committed Jun 5, 2013
1 parent af52c57 commit 8575055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var Gauge = function( config) {
var dv = (config.maxValue - config.minValue) / 100;

toValue = val > config.maxValue ?
toValue = config.maxValue + dv :
config.maxValue + dv :
val < config.minValue ?
config.minValue - dv :
val
Expand Down

0 comments on commit 8575055

Please sign in to comment.