fix codacy warning

This commit is contained in:
AndyScherzinger 2016-11-22 23:06:15 +01:00
parent 9cd963b12c
commit c219152db5
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -478,8 +478,7 @@ public class FileOperationsHelper {
if (hideFileListing) {
updateShareIntent.putExtra(OperationsService.EXTRA_SHARE_PERMISSIONS, OCShare.CREATE_PERMISSION_FLAG);
} else {
OwnCloudVersion serverVersion =
com.owncloud.android.authentication.AccountUtils.getServerVersion(mFileActivity.getAccount());
OwnCloudVersion serverVersion = AccountUtils.getServerVersion(mFileActivity.getAccount());
if (serverVersion != null && serverVersion.isNotReshareableFederatedSupported()) {
updateShareIntent.