From b32b07bf1852f44ca18c97a4d744e47282f6a6b1 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 17 Jan 2016 22:28:19 +0100 Subject: [PATCH] readability --- Logic/Financial/FinancialAccount.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Logic/Financial/FinancialAccount.cs b/Logic/Financial/FinancialAccount.cs index 03635abf..f5da4850 100644 --- a/Logic/Financial/FinancialAccount.cs +++ b/Logic/Financial/FinancialAccount.cs @@ -311,12 +311,9 @@ namespace Swarmops.Logic.Financial return null; } - set - { - if (value != null) - OptionalData.SetOptionalDataInt (ObjectOptionalDataType.GeographyId, value.Identity); - else - OptionalData.SetOptionalDataInt (ObjectOptionalDataType.GeographyId, 0); + set { + this.OptionalData.SetOptionalDataInt (ObjectOptionalDataType.GeographyId, + value != null ? value.Identity : 0); } }