chore(YouTube): Only debug log if protobufBuffer has no array

This commit is contained in:
oSumAtrIX 2023-11-18 22:14:08 +01:00
parent 781cdf88df
commit 58afcec641
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -489,8 +489,13 @@ public final class LithoFilterPatch {
return false;
ByteBuffer protobufBuffer = bufferThreadLocal.get();
if (protobufBuffer == null || !protobufBuffer.hasArray()) {
LogHelper.printException(() -> "Proto buffer is null or has no array"); // Should never happen.
if (protobufBuffer == null) {
LogHelper.printException(() -> "Proto buffer is null"); // Should never happen.
return false;
}
if (!protobufBuffer.hasArray()) {
LogHelper.printDebug(() -> "Proto buffer does not have an array");
return false;
}