1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 05:36:38 +02:00

Simplify several boolean expressions.

This commit is contained in:
Sadie Powell
2024-02-27 10:16:05 +00:00
parent 9f6d378755
commit 7640fad30c
27 changed files with 40 additions and 50 deletions
+1 -4
View File
@@ -260,10 +260,7 @@ void InfoFormatter::AddOption(const Anope::string &opt)
bool Anope::IsFile(const Anope::string &filename)
{
struct stat fileinfo;
if (!stat(filename.c_str(), &fileinfo))
return true;
return false;
return stat(filename.c_str(), &fileinfo) == 0;
}
time_t Anope::DoTime(const Anope::string &s)