Fixed instance of always true
@@ -854,7 +854,7 @@ public class ONetworkProtocolBinary extends ONetworkProtocol {
protected static int trimCsvSerializedContent(OClientConnection connection, final byte[] stream) {
int realLength = stream.length;
final ODatabaseDocumentInternal db = ODatabaseRecordThreadLocal.instance().getIfDefined();
- if (db != null && db instanceof ODatabaseDocument) {
+ if (db != null) {
if (ORecordSerializerSchemaAware2CSV.NAME.equals(connection.getData().getSerializationImpl())) {
// TRIM TAILING SPACES (DUE TO OVERSIZE)
for (int i = stream.length - 1; i > -1; --i) {
