Commit 0b3cb0d7 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Don't put QFile.open() into Q_ASSERT

parent c2ab61fa
......@@ -23,7 +23,8 @@
KMime::Message::Ptr readAndParseMail(const QString &mailFile)
{
QFile file(QLatin1String(MAIL_DATA_DIR) + QLatin1Char('/') + mailFile);
Q_ASSERT(file.open(QIODevice::ReadOnly));
file.open(QIODevice::ReadOnly);
Q_ASSERT(file.isOpen());
const QByteArray data = KMime::CRLFtoLF(file.readAll());
Q_ASSERT(!data.isEmpty());
KMime::Message::Ptr msg(new KMime::Message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment