File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -227,9 +227,9 @@ proto.calcXnums = function(xlen) {
227
227
var a = this . getXat ( i - 1 , 0 ) ;
228
228
var b = this . getXat ( i , 0 ) ;
229
229
230
- if ( a !== undefined && a !== null &&
231
- b !== undefined && b !== null &&
232
- b != a ) {
230
+ if ( b !== a &&
231
+ a !== undefined && a !== null &&
232
+ b !== undefined && b !== null ) {
233
233
nums [ i - 1 ] = Math . round (
234
234
maxDist / Math . abs ( b - a )
235
235
) ;
@@ -250,9 +250,9 @@ proto.calcYnums = function(ylen) {
250
250
var a = this . getYat ( 0 , i - 1 ) ;
251
251
var b = this . getYat ( 0 , i ) ;
252
252
253
- if ( a !== undefined && a !== null &&
254
- b !== undefined && b !== null &&
255
- b != a ) {
253
+ if ( b !== a &&
254
+ a !== undefined && a !== null &&
255
+ b !== undefined && b !== null ) {
256
256
nums [ i - 1 ] = Math . round (
257
257
maxDist / Math . abs ( b - a )
258
258
) ;
You can’t perform that action at this time.
0 commit comments