UI-Files: Codacy fix codacy errors and warnings

This commit is contained in:
refractionpcsx2 committed 2022-08-27 00:33:59 +01:00
1 parent f841a8ba58
commit 93f4277b3c
4 files changed
+4 -6

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ static std::time_t ConvertFileTimeToUnixTime(const FILETIME& ft)
static inline bool FileSystemCharacterIsSane(char c, bool StripSlashes)
{
if (!(c >= 'a' && c <= 'z') && !(c >= 'A' && c <= 'Z') && !(c >= '0' && c <= '9') && c != ' ' && c != ' ' &&
if (!(c >= 'a' && c <= 'z') && !(c >= 'A' && c <= 'Z') && !(c >= '0' && c <= '9') && c != ' ' &&
c != '_' && c != '-' && c != '.')
{
if (!StripSlashes && (c == '/' || c == '\\'))