Remove redundant check for isNull()
This commit is contained in:
@@ -75,7 +75,7 @@ void ScrobblerCache::ReadCache() {
|
||||
qLog(Error) << "Scrobbler cache is missing JSON data.";
|
||||
return;
|
||||
}
|
||||
if (json_doc.isNull() || json_doc.isEmpty()) {
|
||||
if (json_doc.isEmpty()) {
|
||||
qLog(Error) << "Scrobbler cache has empty JSON document.";
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user