config: size()==0 -> empty()

This commit is contained in:
Robert Swiecki
2024-06-28 01:25:45 +02:00
parent 86679ca877
commit b07e069084

View File

@@ -323,7 +323,7 @@ bool parseFile(nsjconf_t* nsjconf, const char* file) {
LOG_E("Couldn't read config file %s", QC(file));
return false;
}
if (conf.size() == 0) {
if (conf.empty()) {
LOG_E("Config file %s is empty", QC(file));
return false;
}