Remove useless null check

This commit is contained in:
Sylvia van Os
2019-12-04 23:10:02 +01:00
parent 368a2a30f6
commit e37288b842

View File

@@ -123,14 +123,14 @@ class BarcodeImageWriterTask extends AsyncTask<Void, Void, Bitmap>
for (int y = 0; y < bitMatrixHeight; y++)
{
if(enclosingRectangle != null && (y < top || y >= bottom))
if(y < top || y >= bottom)
{
continue;
}
int offset = y * bitMatrixWidth;
for (int x = 0; x < bitMatrixWidth; x++)
{
if(enclosingRectangle != null && (x < left || x >= right))
if(x < left || x >= right)
{
continue;
}
@@ -197,4 +197,4 @@ class BarcodeImageWriterTask extends AsyncTask<Void, Void, Bitmap>
imageView.setVisibility(View.GONE);
}
}
}
}