[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-11-16 14:14:45 +00:00 committed by GitHub
parent 3a6a8b8c48
commit 9eaf488c8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -820,7 +820,7 @@ void DictServerArticleRequest::readData( QByteArray reply )
dbID = reply.mid( pos, endPos - pos );
// Retrieve database ID
pos = endPos + 1;
pos = endPos + 1;
if ( reply[ pos ] == '\"' ) {
endPos = reply.indexOf( '\"', pos + 1 ) + 1;
}
@ -855,10 +855,9 @@ void DictServerArticleRequest::readData( QByteArray reply )
qDebug() << "reply data:" << reply << QDateTime::currentDateTime();
if ( articleText.contains( ".\r\n" ) ) {
//discard all left message.
emit finishedArticle( articleText );
return;
}
emit finishedArticle( articleText );
return;
}
}
else {
reply = dictImpl->socket.readAll();