1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

minor code review

This commit is contained in:
gorhill 2015-07-24 20:14:53 -04:00
parent 6acb2e561e
commit eeb48844c2

View File

@ -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;