Address clang-tidy 19 warnings (#2474)

This commit is contained in:
Andrew Gaul
2024-06-23 08:51:51 +05:30
committed by GitHub
parent 86e6bdaf4d
commit 254d717a4a
8 changed files with 18 additions and 20 deletions

View File

@ -453,9 +453,7 @@ int FdEntity::Open(const headers_t* pmeta, off_t size, const struct timespec& ts
orgmeta = *pmeta;
size_orgmeta = get_size(orgmeta);
}
if(new_size < size_orgmeta){
size_orgmeta = new_size;
}
size_orgmeta = std::min(new_size, size_orgmeta);
}else{
//