Trivial code formatting fixup

This commit is contained in:
Michael Gratton 2020-08-13 10:37:39 +10:00 committed by Michael James Gratton
parent c73888b2c4
commit ea5c95bbbb
2 changed files with 8 additions and 5 deletions

View file

@ -262,8 +262,9 @@ public class Geary.RFC822.MessageIDList :
public string to_rfc822_string() {
string[] strings = new string[list.size];
for(int i = 0; i < this.list.size; ++i)
for (int i = 0; i < this.list.size; ++i) {
strings[i] = this.list[i].to_rfc822_string();
}
return string.joinv(" ", strings);
}

View file

@ -74,10 +74,12 @@ namespace Geary.RFC822.Utils {
if (first != null) {
result.add_all(first.get_all());
// Add addresses from second that aren't in first.
if (second != null)
foreach (MailboxAddress address in second)
if (!first.contains_normalized(address.address))
result.add(address);
if (second != null) {
foreach (MailboxAddress address in second) {
if (!first.contains_normalized(address.address))
result.add(address);
}
}
} else if (second != null) {
result.add_all(second.get_all());
}