From: Klaas Freitag Date: Fri, 29 Jan 2016 09:43:31 +0000 (+0100) Subject: csync_update: Remove unneeded checks of previous commit. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1254^2~32^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=57c7727479e1cf9d74b49e3127d693b31091394b;p=nextcloud-desktop.git csync_update: Remove unneeded checks of previous commit. --- diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c index 3274b9cc4..90208d92a 100644 --- a/csync/src/csync_update.c +++ b/csync/src/csync_update.c @@ -140,13 +140,6 @@ static bool _csync_filetype_different( const csync_file_stat_t *tmp, const csync if( tmp->type == CSYNC_FTW_TYPE_SLINK && fs->type != CSYNC_VIO_FILE_TYPE_SYMBOLIC_LINK ) return true; - if( fs->type == CSYNC_VIO_FILE_TYPE_DIRECTORY && tmp->type != CSYNC_FTW_TYPE_DIR ) - return true; - if( fs->type == CSYNC_VIO_FILE_TYPE_REGULAR && tmp->type != CSYNC_FTW_TYPE_FILE ) - return true; - if( fs->type == CSYNC_VIO_FILE_TYPE_SYMBOLIC_LINK && tmp->type != CSYNC_FTW_TYPE_SLINK ) - return true; - return false; // both are NOT different. }