follow coding style in torrentscontroller.cpp

This commit is contained in:
HamletDuFromage 2025-07-25 21:58:35 +02:00
commit ab0b35b9ca

View file

@ -2154,8 +2154,8 @@ void TorrentsController::setCommentAction()
if (!torrent) if (!torrent)
throw APIError(APIErrorType::NotFound); throw APIError(APIErrorType::NotFound);
QString comment = params()[u"comment"_s].trimmed(); QString comment = params()[u"comment"_s].trimmed()
comment.replace(QRegularExpression(u"\r?\n"_s), u" "_s); .replace(QRegularExpression(u"\r?\n"_s), u" "_s);
torrent->setComment(comment); torrent->setComment(comment);
setResult(QString()); setResult(QString());