codacy: don't assign null

This commit is contained in:
AndyScherzinger 2018-08-23 12:46:15 +02:00
parent 4170370f63
commit 0275b81c7b
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 0 additions and 9 deletions

View file

@ -48,14 +48,10 @@ public class UpdateShareViaLinkOperation extends SyncOperation {
* @param path Full path of the file/folder being shared. Mandatory argument
*/
public UpdateShareViaLinkOperation(String path) {
mPath = path;
mPassword = null;
mExpirationDateInMillis = 0;
mPublicUpload = null;
}
/**
* Set password to update in public link.
*
@ -67,7 +63,6 @@ public class UpdateShareViaLinkOperation extends SyncOperation {
mPassword = password;
}
/**
* Set expiration date to update in Share resource.
*
@ -90,7 +85,6 @@ public class UpdateShareViaLinkOperation extends SyncOperation {
mPublicUpload = publicUpload;
}
@Override
protected RemoteOperationResult run(OwnCloudClient client) {
@ -157,6 +151,5 @@ public class UpdateShareViaLinkOperation extends SyncOperation {
getStorageManager().saveFile(file);
}
}
}

View file

@ -89,8 +89,6 @@ public class SendShareDialog extends BottomSheetDialogFragment {
// keep the state of the fragment on configuration changes
setRetainInstance(true);
view = null;
file = getArguments().getParcelable(KEY_OCFILE);
hideNcSharingOptions = getArguments().getBoolean(KEY_HIDE_NCSHARING_OPTIONS, false);
sharingPublicPasswordEnforced = getArguments().getBoolean(KEY_SHARING_PUBLIC_PASSWORD_ENFORCED, false);