From eeb48844c2a262dc123506ec8922a5c3ae2658ad Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 24 Jul 2015 20:14:53 -0400 Subject: [PATCH] minor code review --- src/js/dynamic-net-filtering.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/js/dynamic-net-filtering.js b/src/js/dynamic-net-filtering.js index 774843799..069045cde 100644 --- a/src/js/dynamic-net-filtering.js +++ b/src/js/dynamic-net-filtering.js @@ -444,10 +444,7 @@ Matrix.prototype.mustAbort = function() { /******************************************************************************/ Matrix.prototype.toFilterString = function() { - if ( this.r === 0 ) { - return ''; - } - if ( this.type === '' ) { + if ( this.r === 0 || this.type === '' ) { return ''; } var body = this.z + ' ' + this.y + ' ' + this.type;