From e5e987f932ddce59585f4e91f1ffe6b0469a6e2b Mon Sep 17 00:00:00 2001 From: adbenitez Date: Sun, 1 Oct 2023 17:50:15 +0200 Subject: [PATCH] remove redundant checks --- src/org/thoughtcrime/securesms/util/FileUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/util/FileUtils.java b/src/org/thoughtcrime/securesms/util/FileUtils.java index 6b40f6c39..b4c1683eb 100644 --- a/src/org/thoughtcrime/securesms/util/FileUtils.java +++ b/src/org/thoughtcrime/securesms/util/FileUtils.java @@ -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;