size() to isEmpty() (#1131)

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2023-09-06 12:23:28 -07:00
committed by GitHub
parent 912897cd35
commit 528b84fbde
4 changed files with 5 additions and 5 deletions

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();