Refactored variable declaration

This commit is contained in:
Johannes Kanefendt
2023-03-14 08:26:23 +01:00
parent a556e742fb
commit 49488efab9

View File

@@ -785,6 +785,7 @@ static NSInteger _compareFetchResultsByUID (id entry1, id entry2, NSDictionary *
NSDictionary *message;
NSData *content;
NSArray *flags;
NGImap4Client *dstClient;
// Fetch messages
result = [client fetchUids: uids parts: [NSArray arrayWithObjects: @"RFC822", @"FLAGS", nil]];
@@ -794,7 +795,7 @@ static NSInteger _compareFetchResultsByUID (id entry1, id entry2, NSDictionary *
if ([result isKindOfClass: [NSArray class]] && [result count] > 0)
{
// Copy each message to the other account
NGImap4Client *dstClient = [[account imap4Connection] client];
dstClient = [[account imap4Connection] client];
[[account imap4Connection] selectFolder: imapDestinationFolder];
messages = [result objectEnumerator];
result = nil;