size() to isEmpty() (#1131)

Signed-off-by: Rosen Penev <[email protected]>
This commit is contained in:
Rosen Penev
2023-09-06 21:23:28 +02:00
committed by GitHub
parent 912897cd35
commit 528b84fbde
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ public:
unsigned int read(TagLib::File &file, unsigned int limit) override
{
ByteVector data = file.readBlock(std::min(1U,limit));
if(data.size() > 0) {
if(!data.isEmpty()) {
value = data[0];
}
return data.size();