[Cache] Use curly brackets
This commit is contained in:
parent
ddce60ee00
commit
f169fd5274
@ -17,9 +17,13 @@ namespace Utils
|
|||||||
std::lock_guard<std::mutex> _(Cache::CacheMutex);
|
std::lock_guard<std::mutex> _(Cache::CacheMutex);
|
||||||
|
|
||||||
if (Cache::ValidUrl.empty())
|
if (Cache::ValidUrl.empty())
|
||||||
|
{
|
||||||
return Cache::Urls[0] + path;
|
return Cache::Urls[0] + path;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
return Cache::ValidUrl + path;
|
return Cache::ValidUrl + path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Cache::GetUrl(std::string url, std::string path)
|
std::string Cache::GetUrl(std::string url, std::string path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user