Remove duplicate log messages.

This commit is contained in:
Jonathan Naylor 2021-02-15 07:22:50 +00:00
parent 6c3af73383
commit 0c02bec9d2
2 changed files with 5 additions and 3 deletions

View file

@ -85,8 +85,10 @@ bool CBlockList::loadFile()
{
FILE* fp = ::fopen(m_file.c_str(), "rt");
if (fp == NULL) {
m_callsigns.clear();
LogInfo("Loaded %u callsigns from the block list", m_callsigns.size());
if (!m_callsigns.empty()) {
m_callsigns.clear();
LogInfo("Loaded %u callsigns from the block list", m_callsigns.size());
}
return false;
}