mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-26 08:26:31 +00:00
EggTVData::Folder::Cache::Cache: move is_regular_file call within try-catch
This commit is contained in:
parent
2a863ab985
commit
7b67a69754
1 changed files with 5 additions and 5 deletions
|
|
@ -112,13 +112,13 @@ EggTVData::Folder::Cache::Cache(Folder& folder) : folder_(folder)
|
|||
{
|
||||
for (const fs::directory_entry& entry : fs::directory_iterator(folder_.path()))
|
||||
{
|
||||
if (!entry.is_regular_file())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
if (!entry.is_regular_file())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
replays_.emplace_back(
|
||||
*this,
|
||||
entry.path().filename(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue