[geary/mjog/composer-context-loading-fixes: 13/19] Trivial code formatting fixup
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/composer-context-loading-fixes: 13/19] Trivial code formatting fixup
- Date: Thu, 13 Aug 2020 09:52:25 +0000 (UTC)
commit ea5c95bbbb23e0532a5b7b4e80ce3481642cc899
Author: Michael Gratton <mike vee net>
Date: Thu Aug 13 10:37:39 2020 +1000
Trivial code formatting fixup
src/engine/rfc822/rfc822-message-data.vala | 3 ++-
src/engine/rfc822/rfc822-utils.vala | 10 ++++++----
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/engine/rfc822/rfc822-message-data.vala b/src/engine/rfc822/rfc822-message-data.vala
index 43cc0223a..c81ac4a6a 100644
--- a/src/engine/rfc822/rfc822-message-data.vala
+++ b/src/engine/rfc822/rfc822-message-data.vala
@@ -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);
}
diff --git a/src/engine/rfc822/rfc822-utils.vala b/src/engine/rfc822/rfc822-utils.vala
index 4e7d5b058..feb377eb8 100644
--- a/src/engine/rfc822/rfc822-utils.vala
+++ b/src/engine/rfc822/rfc822-utils.vala
@@ -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());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]