summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-09 00:51:20 +0100
committerZenWalker <[email protected]>2019-03-22 13:12:43 +0100
commit0fd653578517663c7ba34778fd480ceabd427d53 (patch)
tree381293edb6fe96399e5f18f488f9f1f01ab1b940 /libcaja-private
parentd50e9a46772651d03329f7d02f0e67d13c014c5d (diff)
downloadcaja-0fd653578517663c7ba34778fd480ceabd427d53.tar.bz2
caja-0fd653578517663c7ba34778fd480ceabd427d53.tar.xz
caja-file: Fix: true and false branches are identical
Fixes Clang static analyzer warning: caja-file.c:4858:9: warning: true and false branches are identical } else if (file_date_age < 7) { ^
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index 2d3685a5..182484f0 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -4855,8 +4855,6 @@ caja_file_fit_date_as_string (CajaFile *file,
formats = TODAY_TIME_FORMATS;
} else if (file_date_age == 1) {
formats = YESTERDAY_TIME_FORMATS;
- } else if (file_date_age < 7) {
- formats = CURRENT_WEEK_TIME_FORMATS;
} else {
formats = CURRENT_WEEK_TIME_FORMATS;
}