mirror of
https://github.com/taglib/taglib.git
synced 2026-06-14 02:09:27 -04:00
clang-tidy: don't use else after return
Found with readability-else-after-return Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -152,8 +152,7 @@ namespace
|
||||
if(file) {
|
||||
if(file->isValid())
|
||||
return file;
|
||||
else
|
||||
delete file;
|
||||
delete file;
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -200,8 +199,7 @@ namespace
|
||||
if(file) {
|
||||
if(file->isValid())
|
||||
return file;
|
||||
else
|
||||
delete file;
|
||||
delete file;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user