mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
remove redundant checks
This commit is contained in:
@@ -26,7 +26,7 @@ public class FileUtils {
|
||||
}
|
||||
|
||||
private static boolean isValidFilenameChar(char c) {
|
||||
if ((0x00 <= c && c <= 0x1f)) {
|
||||
if (c <= 0x1f) {
|
||||
return false;
|
||||
}
|
||||
switch (c) {
|
||||
@@ -38,7 +38,6 @@ public class FileUtils {
|
||||
case '>':
|
||||
case '?':
|
||||
case '\\':
|
||||
case '\0':
|
||||
case '|':
|
||||
case 0x7F:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user