Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit 689a623

Browse files
tree age bug fix
1 parent 2f44cfc commit 689a623

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ViewModel/Helpers/Decisiontree/Methodes/SameAgeCheck.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ public static bool CheckSameAge(Profile pf, Profile liupf)
3434
/// <returns>true or false</returns>
3535
private static bool CheckAge(Profile pf, Profile liupf)
3636
{
37-
string pfAgeString = pf.Age.Substring(0, 2);
38-
string liupfAgeString = liupf.Age.Substring(0, 2);
39-
4037
try
4138
{
39+
string pfAgeString = pf.Age.Substring(0, 2);
40+
string liupfAgeString = liupf.Age.Substring(0, 2);
4241
int pfage = int.Parse(pfAgeString);
4342
int liupfAge = int.Parse(liupfAgeString);
4443
if (pfage >= (liupfAge - 2) && pfage <= (liupfAge + 2))

0 commit comments

Comments
 (0)